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.00134/0.00134, allocations: 116.7 kB / 17.33 MB, free: 6.004 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.001251/0.001251, allocations: 193.3 kB / 18.25 MB, free: 5.098 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.448/1.448, allocations: 222.9 MB / 241.9 MB, free: 15.41 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.2574/0.2574, allocations: 44.18 MB / 336.2 MB, free: 2.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 59.97 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002457/0.1164, allocations: 1.587 MB / 470.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000691/0.1171, allocations: 482.8 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.877e-05/0.1172, allocations: 4 kB / 470.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.48e-05/0.1172, allocations: 3.938 kB / 470.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.546e-05/0.1173, allocations: 11.92 kB / 470.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002043/0.1175, allocations: 39.89 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.1176, allocations: 91.64 kB / 471 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.1177, allocations: 12 kB / 471 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1178, allocations: 39.84 kB / 471.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.1179, allocations: 35.83 kB / 471.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.118, allocations: 12 kB / 471.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.55e-05/0.118, allocations: 8 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.118, allocations: 23.97 kB / 471.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.1181, allocations: 39.73 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.1182, allocations: 75.98 kB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1182, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1182, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1182, allocations: 0 / 471.3 MB, free: 12.16 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.0006165/0.1188, allocations: 395.3 kB / 471.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1189, allocations: 8.031 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.1189, allocations: 42.73 kB / 471.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.1189, allocations: 8.844 kB / 471.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.1191, allocations: 176.2 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1191, allocations: 8.375 kB / 471.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.1191, allocations: 4.375 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.1193, allocations: 96.7 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1193, allocations: 4 kB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.1193, allocations: 0 / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1194, allocations: 4 kB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.1195, allocations: 47.95 kB / 472 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.12, allocations: 328.7 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.1201, allocations: 98.42 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.742e-05/0.1202, allocations: 40.84 kB / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1203, allocations: 4 kB / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.1205, allocations: 95.36 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1205, allocations: 0 / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003758/0.1209, allocations: 185.6 kB / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.1209, allocations: 63.41 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.75e-05/0.121, allocations: 125.8 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.121, allocations: 29.7 kB / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.863e-05/0.1211, allocations: 88.42 kB / 473.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.1211, allocations: 39.53 kB / 473.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.868e-05/0.1212, allocations: 37.7 kB / 473.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1213, allocations: 326.8 kB / 473.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.785e-05/0.1214, allocations: 35.98 kB / 473.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.245e-05/0.1215, allocations: 73.12 kB / 473.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.1216, allocations: 121.1 kB / 473.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1217, allocations: 0 / 473.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002321/0.1219, allocations: 165.4 kB / 473.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1219, allocations: 8 kB / 473.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1219, allocations: 0 / 473.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.122, allocations: 12.08 kB / 473.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.877e-05/0.1221, allocations: 20 kB / 473.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1221, allocations: 3.984 kB / 473.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.923e-05/0.1221, allocations: 15.94 kB / 473.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.1222, allocations: 8 kB / 473.9 MB, free: 9.223 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.329e-05/0.1223, allocations: 128 kB / 474 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.1223, allocations: 7.906 kB / 474.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.1223, allocations: 12.48 kB / 474.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1223, allocations: 7.938 kB / 474.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1223, allocations: 4 kB / 474.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1223, allocations: 0 / 474.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004642/0.1228, allocations: 438.3 kB / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1228, allocations: 0 / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.963e-05/0.1229, allocations: 12 kB / 474.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1229, allocations: 3.984 kB / 474.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.1229, allocations: 4 kB / 474.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1229, allocations: 0 / 474.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1229, allocations: 4 kB / 474.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.1232, allocations: 262 kB / 474.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.1232, allocations: 88.95 kB / 474.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.1233, allocations: 7.984 kB / 474.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1234, allocations: 7.984 kB / 474.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.1234, allocations: 11.98 kB / 474.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.1234, allocations: 8 kB / 474.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.904e-05/0.1235, allocations: 99.58 kB / 475 MB, free: 8.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1235, allocations: 0 / 475 MB, free: 8.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1237, allocations: 20 kB / 475 MB, free: 8.02 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 0.0005093/0.1242, allocations: 0.7908 MB / 475.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.1245, allocations: 111.8 kB / 475.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1245, allocations: 0 / 475.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.555e-05/0.1246, allocations: 51.97 kB / 476 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.1248, allocations: 17.17 kB / 476 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1263, allocations: 1.649 MB / 477.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.1266, allocations: 0.6924 MB / 478.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.902e-05/0.1266, allocations: 8.891 kB / 478.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.1267, allocations: 27.42 kB / 478.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1267, allocations: 4 kB / 478.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.788/0.9147, allocations: 2.032 MB / 480.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.9149, allocations: 184.2 kB / 480.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.778, allocations: 0 / 480.6 MB, free: 2.332 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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