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.0009428/0.0009428, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000906/0.0009063, allocations: 89.84 kB / 281.5 MB, free: 5.34 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.1971/0.1971, allocations: 44.16 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.794e-05, allocations: 4.219 kB / 444.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 61.91 MB / 0.4947 GB, free: 1.277 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3927/0.5084, allocations: 86.06 MB / 0.5787 GB, free: 10.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.5087, allocations: 63.97 kB / 0.5788 GB, free: 10.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004432/0.5131, allocations: 1.513 MB / 0.5802 GB, free: 8.961 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5131, allocations: 4 kB / 0.5802 GB, free: 8.957 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.5131, allocations: 0 / 0.5802 GB, free: 8.957 MB / 394.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.0005509/0.5137, allocations: 386.2 kB / 0.5806 GB, free: 8.535 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.5138, allocations: 15.98 kB / 0.5806 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.89e-05/0.5138, allocations: 7.906 kB / 0.5806 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.5141, allocations: 171.8 kB / 0.5808 GB, free: 8.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.5141, allocations: 4 kB / 0.5808 GB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.5142, allocations: 11.94 kB / 0.5808 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000148/0.5143, allocations: 37.81 kB / 0.5809 GB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.5145, allocations: 65.67 kB / 0.5809 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.5145, allocations: 3.938 kB / 0.5809 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.5145, allocations: 3.984 kB / 0.5809 GB, free: 8.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.5146, allocations: 4 kB / 0.5809 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006713/0.5152, allocations: 305.1 kB / 0.5812 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.5154, allocations: 78.56 kB / 0.5813 GB, free: 7.754 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.47e-05/0.5155, allocations: 40.78 kB / 0.5813 GB, free: 7.711 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.5155, allocations: 0 / 0.5813 GB, free: 7.711 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.5157, allocations: 87.38 kB / 0.5814 GB, free: 7.613 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.5157, allocations: 0 / 0.5814 GB, free: 7.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002853/0.516, allocations: 133.7 kB / 0.5815 GB, free: 7.477 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.5161, allocations: 59.39 kB / 0.5816 GB, free: 7.406 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.788e-05/0.5161, allocations: 105.2 kB / 0.5817 GB, free: 7.293 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.5162, allocations: 29.7 kB / 0.5817 GB, free: 7.258 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.5163, allocations: 92.41 kB / 0.5818 GB, free: 7.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.5163, allocations: 35.56 kB / 0.5818 GB, free: 7.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.5163, allocations: 0 / 0.5818 GB, free: 7.125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5164, allocations: 322.8 kB / 0.5822 GB, free: 6.801 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.972e-05/0.5165, allocations: 28.31 kB / 0.5822 GB, free: 6.773 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.114e-05/0.5166, allocations: 65.7 kB / 0.5822 GB, free: 6.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.288e-05/0.5167, allocations: 35.98 kB / 0.5823 GB, free: 6.656 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.5167, allocations: 4 kB / 0.5823 GB, free: 6.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001926/0.5169, allocations: 136.3 kB / 0.5824 GB, free: 6.516 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.5169, allocations: 4 kB / 0.5824 GB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5169, allocations: 0 / 0.5824 GB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.5169, allocations: 4 kB / 0.5824 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.517, allocations: 28.14 kB / 0.5824 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.5171, allocations: 8.641 kB / 0.5825 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.889e-05/0.5171, allocations: 8.734 kB / 0.5825 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.5172, allocations: 4 kB / 0.5825 GB, free: 6.461 MB / 394.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 () * 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.296e-05/0.5172, allocations: 111.2 kB / 0.5826 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.5173, allocations: 11.86 kB / 0.5826 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.5173, allocations: 8.75 kB / 0.5826 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.5173, allocations: 4.375 kB / 0.5826 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5173, allocations: 4.219 kB / 0.5826 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5173, allocations: 3.984 kB / 0.5826 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.5178, allocations: 412.5 kB / 0.583 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5178, allocations: 3.938 kB / 0.583 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/0.5178, allocations: 11.98 kB / 0.583 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5178, allocations: 0 / 0.583 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.5179, allocations: 4 kB / 0.583 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.5179, allocations: 0 / 0.583 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5179, allocations: 0 / 0.583 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.5181, allocations: 239.3 kB / 0.5832 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.033e-05/0.5182, allocations: 85 kB / 0.5833 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.5182, allocations: 4 kB / 0.5833 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.5183, allocations: 7.984 kB / 0.5833 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.5184, allocations: 8 kB / 0.5833 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.5184, allocations: 7.984 kB / 0.5834 GB, free: 5.461 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.525e-05/0.5184, allocations: 91.28 kB / 0.5834 GB, free: 5.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5184, allocations: 0 / 0.5834 GB, free: 5.371 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002401/0.5187, allocations: 20 kB / 0.5835 GB, free: 5.352 MB / 394.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) * 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 0.0001269/0.5188, allocations: 103.2 kB / 0.5836 GB, free: 5.242 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.519, allocations: 90.44 kB / 0.5836 GB, free: 5.156 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.519, allocations: 0 / 0.5836 GB, free: 5.156 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.357e-05/0.5191, allocations: 40 kB / 0.5837 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.5193, allocations: 12.3 kB / 0.5837 GB, free: 5.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003124/0.5196, allocations: 126.4 kB / 0.5838 GB, free: 4.957 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.5199, allocations: 0.7039 MB / 0.5845 GB, free: 4.227 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.021e-05/0.52, allocations: 12.88 kB / 0.5845 GB, free: 4.215 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.52, allocations: 11.44 kB / 0.5845 GB, free: 4.203 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.52, allocations: 0 / 0.5845 GB, free: 4.203 MB / 394.7 MB Notification: Performance of Templates: time 0.00279/0.5228, allocations: 0.836 MB / 0.5853 GB, free: 3.375 MB / 394.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