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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 108.2 kB / 18.39 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 182.9 kB / 19.32 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2162/0.2162, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 61.84 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002619/0.115, allocations: 1.528 MB / 472.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007465/0.1158, allocations: 494.8 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.403e-05/0.1158, allocations: 3.938 kB / 472.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.1158, allocations: 11.92 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.44e-05/0.1159, allocations: 7.875 kB / 472.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1161, allocations: 35.89 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.1163, allocations: 91.7 kB / 472.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1164, allocations: 7.984 kB / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.1165, allocations: 39.91 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.848e-05/0.1166, allocations: 43.77 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.1166, allocations: 4 kB / 472.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.367e-05/0.1166, allocations: 15.94 kB / 473 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.865e-05/0.1167, allocations: 19.97 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.16e-05/0.1167, allocations: 39.8 kB / 473 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.1168, allocations: 67.78 kB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1169, allocations: 0 / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1169, allocations: 0 / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1169, allocations: 0 / 473.1 MB, free: 11.23 MB / 350.1 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.0006508/0.1175, allocations: 403.2 kB / 473.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.1176, allocations: 8.031 kB / 473.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.1176, allocations: 12.84 kB / 473.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.1177, allocations: 180.2 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.1178, allocations: 12.38 kB / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.1178, allocations: 4.375 kB / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.118, allocations: 89.94 kB / 473.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.118, allocations: 7.938 kB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.118, allocations: 0 / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.118, allocations: 4 kB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1181, allocations: 43.97 kB / 473.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00047/0.1186, allocations: 336.5 kB / 474.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.1188, allocations: 86.55 kB / 474.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.466e-05/0.1189, allocations: 40.84 kB / 474.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1189, allocations: 8 kB / 474.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.1191, allocations: 91.36 kB / 474.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.512e-06/0.1191, allocations: 0 / 474.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004119/0.1195, allocations: 192.6 kB / 474.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1196, allocations: 59.41 kB / 474.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.693e-05/0.1197, allocations: 121.8 kB / 474.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.1197, allocations: 33.7 kB / 474.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.1197, allocations: 84.42 kB / 474.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.1198, allocations: 39.53 kB / 474.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.182e-05/0.1198, allocations: 37.7 kB / 474.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.1199, allocations: 326.8 kB / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.12, allocations: 31.98 kB / 475.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1201, allocations: 85.06 kB / 475.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1203, allocations: 125.3 kB / 475.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1203, allocations: 3.938 kB / 475.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002543/0.1206, allocations: 153.4 kB / 475.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.1206, allocations: 4 kB / 475.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1206, allocations: 4 kB / 475.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1207, allocations: 0 / 475.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1208, allocations: 27.86 kB / 475.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.1208, allocations: 4 kB / 475.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.216e-05/0.1209, allocations: 20 kB / 475.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.1209, allocations: 8 kB / 475.7 MB, free: 8.332 MB / 350.1 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.051e-05/0.121, allocations: 128 kB / 475.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.121, allocations: 11.89 kB / 475.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.121, allocations: 12.5 kB / 475.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.121, allocations: 3.938 kB / 475.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1211, allocations: 0 / 475.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1211, allocations: 0 / 475.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.1215, allocations: 442.8 kB / 476.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1216, allocations: 7.875 kB / 476.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/0.1216, allocations: 15.92 kB / 476.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1216, allocations: 3.984 kB / 476.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1217, allocations: 7.938 kB / 476.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1217, allocations: 0 / 476.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1217, allocations: 4 kB / 476.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.122, allocations: 247.4 kB / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.122, allocations: 88.89 kB / 476.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.122, allocations: 7.984 kB / 476.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.1222, allocations: 8 kB / 476.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.778e-05/0.1222, allocations: 7.984 kB / 476.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1222, allocations: 4 kB / 476.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.543e-05/0.1223, allocations: 95.2 kB / 476.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1223, allocations: 0 / 476.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.1226, allocations: 28 kB / 476.8 MB, free: 7.125 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.71e-05/0.1227, allocations: 103.3 kB / 476.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002394/0.1229, allocations: 111.8 kB / 477 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.1229, allocations: 0 / 477 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.123, allocations: 51.92 kB / 477.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.1233, allocations: 16.23 kB / 477.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003852/0.1237, allocations: 196.6 kB / 477.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.124, allocations: 0.6924 MB / 478 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.714e-05/0.124, allocations: 12.88 kB / 478 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.398e-05/0.124, allocations: 15.44 kB / 478 MB, free: 5.875 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1241, allocations: 0 / 478 MB, free: 5.875 MB / 350.1 MB Notification: Performance of Templates: time 0.003071/0.1271, allocations: 1.004 MB / 479 MB, free: 4.879 MB / 350.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches