Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009102/0.0009102, allocations: 174.8 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007274/0.0007274, allocations: 90.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2836/0.2836, allocations: 43.55 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003373, allocations: 16 kB / 432 MB, free: 5.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08874, allocations: 58.85 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001345/0.09012, allocations: 1.223 MB / 492 MB, free: 9.438 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006847/0.09082, allocations: 0.4971 MB / 492.5 MB, free: 8.934 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.45e-05/0.09087, allocations: 0 / 492.5 MB, free: 8.934 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.685e-05/0.0909, allocations: 7.922 kB / 492.6 MB, free: 8.926 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.443e-05/0.09098, allocations: 15.86 kB / 492.6 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.09113, allocations: 27.95 kB / 492.6 MB, free: 8.883 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.328e-05/0.09124, allocations: 75.78 kB / 492.7 MB, free: 8.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.481e-05/0.09134, allocations: 11.97 kB / 492.7 MB, free: 8.797 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.089e-05/0.09144, allocations: 39.84 kB / 492.7 MB, free: 8.758 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.197e-05/0.09152, allocations: 39.84 kB / 492.8 MB, free: 8.719 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.09155, allocations: 4 kB / 492.8 MB, free: 8.715 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.09157, allocations: 7.938 kB / 492.8 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.306e-05/0.0916, allocations: 15.92 kB / 492.8 MB, free: 8.691 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.09165, allocations: 61.53 kB / 492.8 MB, free: 8.625 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.356e-05/0.09173, allocations: 43.92 kB / 492.9 MB, free: 8.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09174, allocations: 0 / 492.9 MB, free: 8.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.09175, allocations: 0 / 492.9 MB, free: 8.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.09176, allocations: 0 / 492.9 MB, free: 8.582 MB / 378.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.0005269/0.09229, allocations: 395.5 kB / 493.3 MB, free: 8.148 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.09233, allocations: 12.03 kB / 493.3 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.09237, allocations: 8.844 kB / 493.3 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.09249, allocations: 180.2 kB / 493.5 MB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.09252, allocations: 4.375 kB / 493.5 MB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.09255, allocations: 16.31 kB / 493.5 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.09273, allocations: 93.95 kB / 493.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.09275, allocations: 0 / 493.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.09276, allocations: 0 / 493.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.09278, allocations: 4 kB / 493.6 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.09291, allocations: 47.97 kB / 493.6 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/0.09339, allocations: 336.6 kB / 494 MB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.09358, allocations: 90.53 kB / 494 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.777e-05/0.09368, allocations: 40.84 kB / 494.1 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.09371, allocations: 4 kB / 494.1 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.0939, allocations: 103.3 kB / 494.2 MB, free: 7.109 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.09391, allocations: 0 / 494.2 MB, free: 7.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.000397/0.09431, allocations: 193.5 kB / 494.4 MB, free: 6.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.09436, allocations: 51.53 kB / 494.4 MB, free: 6.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.532e-05/0.09444, allocations: 125.8 kB / 494.6 MB, free: 6.719 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.09447, allocations: 29.7 kB / 494.6 MB, free: 6.684 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.09452, allocations: 92.8 kB / 494.7 MB, free: 6.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/0.09456, allocations: 31.55 kB / 494.7 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.396e-06/0.09457, allocations: 8 kB / 494.7 MB, free: 6.551 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.09466, allocations: 322.8 kB / 495 MB, free: 6.227 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.992e-05/0.09475, allocations: 35.92 kB / 495.1 MB, free: 6.191 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.09486, allocations: 85.12 kB / 495.1 MB, free: 6.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.09505, allocations: 133.2 kB / 495.3 MB, free: 5.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.09506, allocations: 0 / 495.3 MB, free: 5.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002529/0.09532, allocations: 161.3 kB / 495.4 MB, free: 5.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.09535, allocations: 12.16 kB / 495.4 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.09536, allocations: 0 / 495.4 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.09537, allocations: 4 kB / 495.5 MB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.09548, allocations: 23.92 kB / 495.5 MB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.0955, allocations: 3.938 kB / 495.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.966e-05/0.09556, allocations: 15.94 kB / 495.5 MB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.09558, allocations: 4 kB / 495.5 MB, free: 5.715 MB / 378.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.807e-05/0.09567, allocations: 124.1 kB / 495.6 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.0957, allocations: 15.89 kB / 495.6 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.09573, allocations: 12.5 kB / 495.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.09574, allocations: 3.938 kB / 495.7 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.09575, allocations: 3.938 kB / 495.7 MB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.09575, allocations: 0 / 495.7 MB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004709/0.09623, allocations: 450.3 kB / 496.1 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.09624, allocations: 0 / 496.1 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.596e-05/0.09631, allocations: 19.86 kB / 496.1 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.09632, allocations: 4 kB / 496.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.09634, allocations: 0 / 496.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.09634, allocations: 0 / 496.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09635, allocations: 0 / 496.1 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.09666, allocations: 251.4 kB / 496.4 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.09671, allocations: 96.89 kB / 496.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.09674, allocations: 7.984 kB / 496.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.09685, allocations: 8 kB / 496.5 MB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.0969, allocations: 7.984 kB / 496.5 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.09692, allocations: 11.98 kB / 496.5 MB, free: 4.625 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.062e-05/0.09697, allocations: 87.28 kB / 496.6 MB, free: 4.539 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09697, allocations: 0 / 496.6 MB, free: 4.539 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002357/0.09721, allocations: 28.27 kB / 496.6 MB, free: 4.512 MB / 378.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.973e-05/0.09731, allocations: 115 kB / 496.7 MB, free: 4.387 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002255/0.09754, allocations: 108.6 kB / 496.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09755, allocations: 0 / 496.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.09766, allocations: 51.92 kB / 496.9 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.09793, allocations: 23.61 kB / 496.9 MB, free: 4.211 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.09832, allocations: 247.1 kB / 497.1 MB, free: 3.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.09853, allocations: 0.6926 MB / 497.8 MB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.09857, allocations: 19.44 kB / 497.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.09858, allocations: 0 / 497.9 MB, free: 3.195 MB / 378.7 MB Notification: Performance of Templates: time 0.002235/0.1008, allocations: 1.199 MB / 499 MB, free: 1.996 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches