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.001571/0.001571, allocations: 117.2 kB / 17.78 MB, free: 5.277 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.00168/0.00168, allocations: 184.2 kB / 18.71 MB, free: 4.359 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.45/1.45, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2259/0.2259, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 59.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4185, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002851/0.4214, allocations: 1.52 MB / 0.5204 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.4225, allocations: 0.494 MB / 0.5209 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.193e-05/0.4226, allocations: 1.031 kB / 0.5209 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.848e-05/0.4227, allocations: 5.109 kB / 0.5209 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.4228, allocations: 12.39 kB / 0.5209 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.4232, allocations: 38.25 kB / 0.5209 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.4234, allocations: 86.42 kB / 0.521 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.4236, allocations: 20.89 kB / 0.521 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.4237, allocations: 45.27 kB / 0.5211 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.4238, allocations: 44.8 kB / 0.5211 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.4239, allocations: 6.781 kB / 0.5211 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.376e-05/0.4239, allocations: 6.562 kB / 0.5211 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.424, allocations: 16.7 kB / 0.5211 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.424, allocations: 37.81 kB / 0.5212 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.4242, allocations: 72.73 kB / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.4242, allocations: 0.875 kB / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4243, allocations: 0 / 0.5212 GB, free: 2.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.4243, allocations: 0 / 0.5212 GB, free: 2.008 MB / 382.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.0008315/0.4251, allocations: 399 kB / 0.5216 GB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.4252, allocations: 13.16 kB / 0.5216 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.547e-05/0.4252, allocations: 10.33 kB / 0.5216 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.4254, allocations: 182.3 kB / 0.5218 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.4254, allocations: 8.516 kB / 0.5218 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.4255, allocations: 9.906 kB / 0.5218 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.4257, allocations: 91.62 kB / 0.5219 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4257, allocations: 1.125 kB / 0.5219 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.4258, allocations: 0.75 kB / 0.5219 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.4258, allocations: 2.281 kB / 0.5219 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.4259, allocations: 47.23 kB / 0.522 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000626/0.4266, allocations: 325.7 kB / 0.5223 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.4268, allocations: 89.28 kB / 0.5224 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.4269, allocations: 45.92 kB / 0.5224 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.4269, allocations: 2.125 kB / 0.5224 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.4271, allocations: 101.6 kB / 0.5225 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.724e-06/0.4272, allocations: 0 / 0.5225 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004542/0.4276, allocations: 191.8 kB / 0.5227 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.4277, allocations: 59.67 kB / 0.5227 GB, free: 0.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.259e-05/0.4278, allocations: 113 kB / 0.5229 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.4278, allocations: 32.69 kB / 0.5229 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.876e-05/0.4278, allocations: 96.8 kB / 0.523 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.948e-05/0.4279, allocations: 31.86 kB / 0.523 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.648e-05/0.4279, allocations: 42.72 kB / 0.523 GB, free: 472 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.981e-05/0.428, allocations: 328.2 kB / 0.5234 GB, free: 140 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.989e-05/0.4281, allocations: 40.42 kB / 0.5234 GB, free: 124 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.4282, allocations: 77.06 kB / 0.5235 GB, free: 64 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.4284, allocations: 126.7 kB / 0.5236 GB, free: 15.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4285, allocations: 1.031 kB / 0.5236 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002815/0.4287, allocations: 149.7 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4288, allocations: 6.125 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.4288, allocations: 5.062 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.4288, allocations: 6.484 kB / 0.5238 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.4289, allocations: 31.06 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.429, allocations: 2.5 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.429, allocations: 9.484 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.4291, allocations: 9.781 kB / 0.5238 GB, free: 15.88 MB / 398.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 0.0001165/0.4292, allocations: 129.4 kB / 0.5239 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.014e-05/0.4292, allocations: 9.5 kB / 0.5239 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.4292, allocations: 15 kB / 0.5239 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4293, allocations: 9 kB / 0.524 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4293, allocations: 1.125 kB / 0.524 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4293, allocations: 1.406 kB / 0.524 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006404/0.4299, allocations: 440.4 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4299, allocations: 3.938 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.725e-05/0.43, allocations: 9.156 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.43, allocations: 0.7969 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.43, allocations: 6.438 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.43, allocations: 5.344 kB / 0.5244 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.43, allocations: 0.8438 kB / 0.5244 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003849/0.4304, allocations: 247.6 kB / 0.5246 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.286e-05/0.4305, allocations: 88.75 kB / 0.5247 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.4305, allocations: 2.719 kB / 0.5247 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.4307, allocations: 16.23 kB / 0.5247 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.4307, allocations: 10.92 kB / 0.5248 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.4308, allocations: 5.453 kB / 0.5248 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.419e-05/0.4308, allocations: 94.62 kB / 0.5248 GB, free: 14.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4308, allocations: 0 / 0.5248 GB, free: 14.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.4311, allocations: 21.84 kB / 0.5249 GB, free: 14.98 MB / 398.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 0.0001397/0.4313, allocations: 101.5 kB / 0.525 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.4316, allocations: 107.5 kB / 0.5251 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4316, allocations: 4.062 kB / 0.5251 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.4317, allocations: 49.22 kB / 0.5251 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.432, allocations: 14.73 kB / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005312/0.4326, allocations: 204.7 kB / 0.5253 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.4329, allocations: 0.6973 MB / 0.526 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.381e-05/0.433, allocations: 18.08 kB / 0.526 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.433, allocations: 14.2 kB / 0.526 GB, free: 13.97 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.433, allocations: 3.938 kB / 0.526 GB, free: 13.96 MB / 398.1 MB Notification: Performance of Templates: time 0.004482/0.4375, allocations: 1.005 MB / 0.527 GB, free: 13.82 MB / 398.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches