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.007509/0.007509, allocations: 100.3 kB / 15.87 MB, free: 6.309 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.001745/0.001745, allocations: 196.3 kB / 16.79 MB, free: 6.238 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.346/1.346, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3117/0.3117, allocations: 43.49 MB / 313.5 MB, free: 8.312 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.001278/0.001278, allocations: 66.09 kB / 382.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 57.78 MB / 439.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002482/0.1083, allocations: 1.587 MB / 441.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007321/0.109, allocations: 0.5269 MB / 442 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.801e-05/0.1091, allocations: 0 / 442 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.221e-05/0.1091, allocations: 7.938 kB / 442 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.075e-05/0.1092, allocations: 11.92 kB / 442 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.1094, allocations: 27.97 kB / 442.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.935e-05/0.1095, allocations: 83.7 kB / 442.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.719e-05/0.1096, allocations: 19.97 kB / 442.2 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.088e-05/0.1097, allocations: 39.78 kB / 442.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.825e-05/0.1097, allocations: 35.84 kB / 442.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.1098, allocations: 4 kB / 442.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.698e-05/0.1098, allocations: 4 kB / 442.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.1098, allocations: 15.97 kB / 442.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.869e-05/0.1099, allocations: 35.8 kB / 442.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.912e-05/0.11, allocations: 75.98 kB / 442.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.11, allocations: 4 kB / 442.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.11, allocations: 0 / 442.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.11, allocations: 0 / 442.4 MB, free: 12.04 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.0005898/0.1106, allocations: 399.2 kB / 442.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.1106, allocations: 8.031 kB / 442.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.1107, allocations: 34.75 kB / 442.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.137e-05/0.1107, allocations: 16.84 kB / 442.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.1108, allocations: 180.2 kB / 443 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.1109, allocations: 4.375 kB / 443 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.1109, allocations: 8.375 kB / 443 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.1111, allocations: 89.77 kB / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.1111, allocations: 0 / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.1111, allocations: 4 kB / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1111, allocations: 4 kB / 443.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1113, allocations: 47.91 kB / 443.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.1117, allocations: 320.8 kB / 443.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.1119, allocations: 94.48 kB / 443.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.223e-05/0.112, allocations: 44.78 kB / 443.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.112, allocations: 3.984 kB / 443.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.1122, allocations: 107.3 kB / 443.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.1123, allocations: 0 / 443.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003892/0.1126, allocations: 181.7 kB / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.1127, allocations: 59.39 kB / 444 MB, free: 10.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.1128, allocations: 121.8 kB / 444.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1128, allocations: 29.7 kB / 444.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.765e-05/0.1129, allocations: 92.42 kB / 444.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.1129, allocations: 39.53 kB / 444.2 MB, free: 9.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.131e-05/0.113, allocations: 41.7 kB / 444.3 MB, free: 9.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.721e-05/0.1131, allocations: 322.8 kB / 444.6 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.562e-05/0.1132, allocations: 31.98 kB / 444.6 MB, free: 9.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1133, allocations: 81.06 kB / 444.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.1135, allocations: 121.1 kB / 444.8 MB, free: 9.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1135, allocations: 0 / 444.8 MB, free: 9.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002399/0.1137, allocations: 165.6 kB / 445 MB, free: 9.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1137, allocations: 4 kB / 445 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1137, allocations: 0 / 445 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.1138, allocations: 7.938 kB / 445 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1139, allocations: 23.92 kB / 445 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.1139, allocations: 3.984 kB / 445 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.268e-05/0.114, allocations: 19.84 kB / 445 MB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.114, allocations: 8.156 kB / 445 MB, free: 9.102 MB / 382.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.076e-05/0.1141, allocations: 136 kB / 445.2 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.1141, allocations: 11.89 kB / 445.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.794e-05/0.1141, allocations: 8.5 kB / 445.2 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1141, allocations: 7.938 kB / 445.2 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1141, allocations: 0 / 445.2 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1142, allocations: 0 / 445.2 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.1146, allocations: 446.4 kB / 445.6 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1147, allocations: 4 kB / 445.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.192e-05/0.1147, allocations: 8.359 kB / 445.6 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1147, allocations: 0 / 445.6 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1147, allocations: 4 kB / 445.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1148, allocations: 0 / 445.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1148, allocations: 3.938 kB / 445.7 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.115, allocations: 251.3 kB / 445.9 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.1151, allocations: 92.95 kB / 446 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.1151, allocations: 7.984 kB / 446 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.1153, allocations: 8 kB / 446 MB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.1153, allocations: 11.98 kB / 446 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1153, allocations: 11.92 kB / 446 MB, free: 8.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.822e-05/0.1154, allocations: 87.28 kB / 446.1 MB, free: 7.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1154, allocations: 0 / 446.1 MB, free: 7.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000237/0.1156, allocations: 23.98 kB / 446.1 MB, free: 7.906 MB / 382.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.0005323/0.1162, allocations: 0.7942 MB / 446.9 MB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002138/0.1164, allocations: 104.7 kB / 447 MB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1164, allocations: 0 / 447 MB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.967e-05/0.1165, allocations: 52.23 kB / 447.1 MB, free: 6.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1168, allocations: 20.25 kB / 447.1 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.1183, allocations: 1.655 MB / 448.8 MB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.1185, allocations: 0.7043 MB / 449.5 MB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.068e-05/0.1186, allocations: 12.88 kB / 449.5 MB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.661e-05/0.1186, allocations: 23.44 kB / 449.5 MB, free: 4.383 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1186, allocations: 0 / 449.5 MB, free: 4.383 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01013/0.1288, allocations: 1.936 MB / 451.4 MB, free: 2.438 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.129, allocations: 183.4 kB / 451.6 MB, free: 2.184 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/1.8, allocations: 7.938 kB / 451.6 MB, free: 2.176 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches