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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001086/0.001086, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.353/1.353, allocations: 222.9 MB / 242.4 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.2027/0.2027, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 59.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3903, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003162/0.3935, allocations: 1.523 MB / 0.5199 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009547/0.3945, allocations: 489.4 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.3946, allocations: 3.938 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.887e-05/0.3946, allocations: 10.08 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3947, allocations: 18.89 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.395, allocations: 43.55 kB / 0.5204 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.3952, allocations: 87.61 kB / 0.5205 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.3953, allocations: 15.33 kB / 0.5205 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.3955, allocations: 40.72 kB / 0.5206 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.3956, allocations: 37.45 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.3956, allocations: 7.25 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.113e-05/0.3957, allocations: 11.12 kB / 0.5206 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.719e-05/0.3957, allocations: 15.09 kB / 0.5206 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.3958, allocations: 45.7 kB / 0.5207 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.396, allocations: 71.3 kB / 0.5208 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.396, allocations: 1.969 kB / 0.5208 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.396, allocations: 0 / 0.5208 GB, free: 1.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.396, allocations: 0 / 0.5208 GB, free: 1.688 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.0007498/0.3967, allocations: 402.4 kB / 0.5211 GB, free: 1.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3968, allocations: 16.5 kB / 0.5212 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.3968, allocations: 39.33 kB / 0.5212 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.086e-05/0.3969, allocations: 9.688 kB / 0.5212 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.397, allocations: 175.3 kB / 0.5214 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.3971, allocations: 7.984 kB / 0.5214 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/0.3971, allocations: 6.797 kB / 0.5214 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3973, allocations: 90.75 kB / 0.5215 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3973, allocations: 0.9688 kB / 0.5215 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.3974, allocations: 1.594 kB / 0.5215 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3974, allocations: 1.891 kB / 0.5215 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.3975, allocations: 47.06 kB / 0.5215 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005405/0.3981, allocations: 334 kB / 0.5218 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.3983, allocations: 88.5 kB / 0.5219 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.349e-05/0.3984, allocations: 42.38 kB / 0.522 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.3984, allocations: 5.375 kB / 0.522 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.3987, allocations: 94.27 kB / 0.5221 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.964e-06/0.3987, allocations: 0 / 0.5221 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004423/0.3991, allocations: 192 kB / 0.5222 GB, free: 464 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.3992, allocations: 60.2 kB / 0.5223 GB, free: 396 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.928e-05/0.3992, allocations: 124.4 kB / 0.5224 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3993, allocations: 36.8 kB / 0.5225 GB, free: 240 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.439e-05/0.3993, allocations: 91.69 kB / 0.5225 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.3994, allocations: 36.55 kB / 0.5226 GB, free: 116 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-05/0.3994, allocations: 34.41 kB / 0.5226 GB, free: 92 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3996, allocations: 327.9 kB / 0.5229 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.092e-05/0.3996, allocations: 33.45 kB / 0.523 GB, free: 15.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3998, allocations: 84.02 kB / 0.523 GB, free: 15.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.4, allocations: 123.4 kB / 0.5232 GB, free: 15.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4, allocations: 4 kB / 0.5232 GB, free: 15.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000281/0.4003, allocations: 158.2 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4003, allocations: 5.781 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4003, allocations: 1.641 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4004, allocations: 7.281 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.4005, allocations: 22.53 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.4005, allocations: 3 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.4006, allocations: 16.45 kB / 0.5234 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.4006, allocations: 5.844 kB / 0.5234 GB, free: 15.5 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.0001293/0.4008, allocations: 130.5 kB / 0.5235 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.284e-05/0.4008, allocations: 12.91 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.4008, allocations: 14.42 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.4008, allocations: 5.984 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4009, allocations: 1.469 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4009, allocations: 0.6562 kB / 0.5235 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005564/0.4014, allocations: 440.5 kB / 0.5239 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4014, allocations: 0 / 0.5239 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.982e-05/0.4015, allocations: 13.48 kB / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.4015, allocations: 0 / 0.524 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.4015, allocations: 6.844 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4015, allocations: 0.625 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4015, allocations: 1.156 kB / 0.524 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003509/0.4019, allocations: 256.9 kB / 0.5242 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.995e-05/0.402, allocations: 85.08 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.402, allocations: 2.297 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.4021, allocations: 10.45 kB / 0.5243 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.01e-05/0.4022, allocations: 12.17 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.4022, allocations: 4.562 kB / 0.5243 GB, free: 14.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.973e-05/0.4023, allocations: 95.64 kB / 0.5244 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.4023, allocations: 1.219 kB / 0.5244 GB, free: 14.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.4025, allocations: 25.22 kB / 0.5244 GB, free: 14.61 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.0006371/0.4032, allocations: 0.792 MB / 0.5252 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002821/0.4035, allocations: 104.2 kB / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4035, allocations: 320 / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.4036, allocations: 59.55 kB / 0.5254 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.4039, allocations: 15.83 kB / 0.5254 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.4058, allocations: 1.637 MB / 0.527 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.4061, allocations: 0.6961 MB / 0.5277 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.96e-05/0.4062, allocations: 15 kB / 0.5277 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.576e-05/0.4062, allocations: 27.16 kB / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4062, allocations: 0 / 0.5277 GB, free: 11.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.4244, allocations: 2.158 MB / 0.5298 GB, free: 10.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.275, allocations: 10.88 kB / 0.5298 GB, free: 10.98 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.csv","/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