Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 176.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007727/0.0007727, allocations: 101 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3012/0.3012, allocations: 44.21 MB / 387.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002926, allocations: 8 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2735, allocations: 61.9 MB / 0.5096 GB, free: 37.64 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.3764, allocations: 86.8 MB / 0.5943 GB, free: 8.32 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.3766, allocations: 63.97 kB / 0.5944 GB, free: 8.258 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004111/0.3808, allocations: 1.543 MB / 0.5959 GB, free: 6.715 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3808, allocations: 0 / 0.5959 GB, free: 6.715 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.3808, allocations: 0 / 0.5959 GB, free: 6.715 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004858/0.3813, allocations: 395 kB / 0.5963 GB, free: 6.281 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.3813, allocations: 12.02 kB / 0.5963 GB, free: 6.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.3814, allocations: 8 kB / 0.5963 GB, free: 6.262 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3815, allocations: 175 kB / 0.5964 GB, free: 6.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.3815, allocations: 4 kB / 0.5965 GB, free: 6.047 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.3815, allocations: 11.95 kB / 0.5965 GB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.3817, allocations: 89.64 kB / 0.5966 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3817, allocations: 0 / 0.5966 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.3818, allocations: 3.984 kB / 0.5966 GB, free: 5.938 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3818, allocations: 4 kB / 0.5966 GB, free: 5.934 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.3819, allocations: 51.86 kB / 0.5966 GB, free: 5.883 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.3824, allocations: 324.8 kB / 0.5969 GB, free: 5.516 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.3826, allocations: 90.55 kB / 0.597 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.3826, allocations: 0 / 0.597 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.3828, allocations: 108.9 kB / 0.5971 GB, free: 5.301 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.3828, allocations: 3.938 kB / 0.5971 GB, free: 5.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003834/0.3832, allocations: 192.7 kB / 0.5973 GB, free: 5.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.3832, allocations: 59.39 kB / 0.5974 GB, free: 5.035 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.634e-05/0.3833, allocations: 109.2 kB / 0.5975 GB, free: 4.918 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.3833, allocations: 29.7 kB / 0.5975 GB, free: 4.883 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.3834, allocations: 92.64 kB / 0.5976 GB, free: 4.785 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.3834, allocations: 39.53 kB / 0.5976 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-06/0.3834, allocations: 3.938 kB / 0.5976 GB, free: 4.742 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.3835, allocations: 322.8 kB / 0.5979 GB, free: 4.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.845e-05/0.3836, allocations: 36.36 kB / 0.598 GB, free: 4.383 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.849e-05/0.3837, allocations: 86.75 kB / 0.598 GB, free: 4.281 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.649e-05/0.3838, allocations: 47.94 kB / 0.5981 GB, free: 4.234 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3839, allocations: 0 / 0.5981 GB, free: 4.234 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002411/0.3841, allocations: 161.4 kB / 0.5982 GB, free: 4.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3841, allocations: 4 kB / 0.5982 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3841, allocations: 4 kB / 0.5982 GB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.3841, allocations: 0 / 0.5982 GB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3843, allocations: 27.92 kB / 0.5983 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3843, allocations: 0 / 0.5983 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.975e-05/0.3843, allocations: 19.78 kB / 0.5983 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.3844, allocations: 12.16 kB / 0.5983 GB, free: 4.004 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.617e-05/0.3844, allocations: 136.5 kB / 0.5984 GB, free: 3.863 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.3845, allocations: 11.89 kB / 0.5984 GB, free: 3.852 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.3845, allocations: 8.5 kB / 0.5985 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3845, allocations: 4 kB / 0.5985 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3845, allocations: 0 / 0.5985 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.3845, allocations: 0 / 0.5985 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.385, allocations: 446.8 kB / 0.5989 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.385, allocations: 0 / 0.5989 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.151e-05/0.3851, allocations: 15.92 kB / 0.5989 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3851, allocations: 0 / 0.5989 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3851, allocations: 7.938 kB / 0.5989 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3851, allocations: 0 / 0.5989 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3851, allocations: 0 / 0.5989 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.3854, allocations: 259.4 kB / 0.5992 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.802e-05/0.3854, allocations: 81.02 kB / 0.5992 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.3855, allocations: 15.98 kB / 0.5992 GB, free: 2.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3856, allocations: 8 kB / 0.5993 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.3856, allocations: 7.984 kB / 0.5993 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.3856, allocations: 11.98 kB / 0.5993 GB, free: 2.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.891e-05/0.3857, allocations: 95.22 kB / 0.5994 GB, free: 2.816 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3857, allocations: 0 / 0.5994 GB, free: 2.816 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002205/0.3859, allocations: 20 kB / 0.5994 GB, free: 2.797 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.934e-05/0.386, allocations: 107.2 kB / 0.5995 GB, free: 2.684 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002253/0.3863, allocations: 103.9 kB / 0.5996 GB, free: 2.582 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.3863, allocations: 320 / 0.5996 GB, free: 2.582 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.3864, allocations: 55.92 kB / 0.5996 GB, free: 2.527 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.3865, allocations: 21.28 kB / 0.5997 GB, free: 2.508 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003646/0.3869, allocations: 221.3 kB / 0.5999 GB, free: 2.262 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.3871, allocations: 0.7004 MB / 0.6006 GB, free: 1.535 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.052e-05/0.3872, allocations: 12.88 kB / 0.6006 GB, free: 1.523 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.3872, allocations: 11.44 kB / 0.6006 GB, free: 1.512 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3872, allocations: 0 / 0.6006 GB, free: 1.512 MB / 410.7 MB Notification: Performance of Templates: time 0.002574/0.3898, allocations: 0.8781 MB / 0.6014 GB, free: 0.6406 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches