Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_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.001261/0.001261, allocations: 103.5 kB / 16.27 MB, free: 6.41 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.001323/0.001322, allocations: 191.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.24/0.24, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 72.25 kB / 382.8 MB, free: 56.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1112, allocations: 57.79 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003027/0.1143, allocations: 1.517 MB / 442.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.1153, allocations: 0.5213 MB / 442.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.1153, allocations: 4 kB / 442.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.032e-05/0.1154, allocations: 11.86 kB / 442.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.873e-05/0.1155, allocations: 15.86 kB / 442.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.1157, allocations: 39.88 kB / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.1158, allocations: 83.78 kB / 442.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1159, allocations: 16.27 kB / 442.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.1161, allocations: 35.84 kB / 442.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.984e-05/0.1162, allocations: 39.84 kB / 442.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.1162, allocations: 12 kB / 442.9 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.893e-05/0.1162, allocations: 8 kB / 442.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.1162, allocations: 23.91 kB / 442.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.1163, allocations: 35.84 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1164, allocations: 75.66 kB / 443 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1164, allocations: 3.938 kB / 443.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1164, allocations: 3.938 kB / 443.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.1165, allocations: 0 / 443.1 MB, free: 4.34 MB / 318.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.0006296/0.1171, allocations: 403.2 kB / 443.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1171, allocations: 11.89 kB / 443.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.1172, allocations: 38.73 kB / 443.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.587e-05/0.1172, allocations: 12.84 kB / 443.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.1174, allocations: 172.2 kB / 443.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.1174, allocations: 8.375 kB / 443.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.1174, allocations: 8.359 kB / 443.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.1176, allocations: 85.72 kB / 443.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1177, allocations: 8 kB / 443.8 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1177, allocations: 7.984 kB / 443.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1177, allocations: 0 / 443.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.1178, allocations: 35.98 kB / 443.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.1183, allocations: 324.8 kB / 444.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.1185, allocations: 94.48 kB / 444.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.68e-05/0.1186, allocations: 48.81 kB / 444.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1186, allocations: 4 kB / 444.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.1188, allocations: 95.48 kB / 444.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1188, allocations: 0 / 444.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003875/0.1192, allocations: 197.2 kB / 444.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.1193, allocations: 59.34 kB / 444.6 MB, free: 2.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.06e-05/0.1193, allocations: 117.8 kB / 444.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1194, allocations: 33.7 kB / 444.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.223e-05/0.1194, allocations: 92.34 kB / 444.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.1194, allocations: 35.61 kB / 444.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.1195, allocations: 33.94 kB / 444.9 MB, free: 2.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.124e-05/0.1195, allocations: 326.8 kB / 445.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.289e-05/0.1196, allocations: 44.28 kB / 445.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.369e-05/0.1197, allocations: 73.14 kB / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.1199, allocations: 125 kB / 445.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1199, allocations: 0 / 445.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002165/0.1201, allocations: 157.4 kB / 445.7 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1201, allocations: 5.25 kB / 445.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1202, allocations: 7.938 kB / 445.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.1202, allocations: 8.094 kB / 445.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.1203, allocations: 19.98 kB / 445.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1203, allocations: 4 kB / 445.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.081e-05/0.1204, allocations: 19.78 kB / 445.7 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1204, allocations: 4 kB / 445.7 MB, free: 1.41 MB / 318.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.0001229/0.1205, allocations: 136 kB / 445.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.1206, allocations: 7.906 kB / 445.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.894e-05/0.1206, allocations: 12.5 kB / 445.9 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1206, allocations: 7.938 kB / 445.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1206, allocations: 0 / 445.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1206, allocations: 0 / 445.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004694/0.1211, allocations: 450.3 kB / 446.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1211, allocations: 0 / 446.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.004e-05/0.1212, allocations: 8 kB / 446.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1212, allocations: 0 / 446.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1212, allocations: 0 / 446.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1212, allocations: 7.984 kB / 446.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1212, allocations: 4 kB / 446.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.1215, allocations: 251.3 kB / 446.6 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.1216, allocations: 85 kB / 446.7 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/0.1216, allocations: 8 kB / 446.7 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.1217, allocations: 7.984 kB / 446.7 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/0.1218, allocations: 7.984 kB / 446.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.1218, allocations: 12 kB / 446.7 MB, free: 328 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.26e-05/0.1218, allocations: 91.27 kB / 446.8 MB, free: 236 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1218, allocations: 0 / 446.8 MB, free: 236 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002529/0.1221, allocations: 24 kB / 446.8 MB, free: 212 kB / 318.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.0007375/0.1228, allocations: 0.7828 MB / 447.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.1232, allocations: 119.6 kB / 447.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1232, allocations: 3.938 kB / 447.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.1234, allocations: 55.95 kB / 447.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.1237, allocations: 12 kB / 447.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.1258, allocations: 1.633 MB / 449.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.1263, allocations: 0.6924 MB / 450.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.409e-05/0.1263, allocations: 12.88 kB / 450.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-05/0.1264, allocations: 27.42 kB / 450.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1264, allocations: 4 kB / 450.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02016/0.1466, allocations: 2.117 MB / 452.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.784, allocations: 16.92 kB / 452.3 MB, free: 10.58 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches