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.001254/0.001254, allocations: 97.12 kB / 16.99 MB, free: 5.941 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.001392/0.001392, allocations: 174.3 kB / 17.87 MB, free: 5.621 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.408/1.408, allocations: 223.2 MB / 241.8 MB, free: 14.62 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.2103/0.2103, allocations: 44.23 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1186, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001608/0.1203, allocations: 1.217 MB / 472.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006858/0.121, allocations: 459.2 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.121, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.1211, allocations: 3.938 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.1212, allocations: 19.97 kB / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.1213, allocations: 27.91 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.382e-05/0.1214, allocations: 55.86 kB / 473.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.029e-05/0.1215, allocations: 8 kB / 473.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.647e-05/0.1216, allocations: 43.83 kB / 473.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.1217, allocations: 27.84 kB / 473.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.1217, allocations: 4 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.574e-05/0.1217, allocations: 4 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.1217, allocations: 27.91 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.963e-05/0.1218, allocations: 37.69 kB / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.532e-05/0.1219, allocations: 52.12 kB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.1219, allocations: 0 / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1219, allocations: 0 / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1219, allocations: 0 / 473.5 MB, free: 11.65 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.0005498/0.1225, allocations: 395 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1225, allocations: 8.031 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.1226, allocations: 38.56 kB / 473.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.1226, allocations: 11.89 kB / 473.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.1227, allocations: 167 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.1227, allocations: 12 kB / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.1227, allocations: 7.953 kB / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.1229, allocations: 97.2 kB / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1229, allocations: 0 / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.123, allocations: 0 / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.123, allocations: 7.984 kB / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.1231, allocations: 47.98 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.1236, allocations: 328.7 kB / 474.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.1238, allocations: 90.55 kB / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.1238, allocations: 3.938 kB / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.124, allocations: 99.34 kB / 474.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.124, allocations: 4 kB / 474.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003872/0.1244, allocations: 189.9 kB / 475 MB, free: 9.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.1245, allocations: 59.41 kB / 475 MB, free: 9.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.986e-05/0.1245, allocations: 129.8 kB / 475.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.1246, allocations: 33.7 kB / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.1246, allocations: 88.33 kB / 475.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.1247, allocations: 39.55 kB / 475.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/0.1247, allocations: 4 kB / 475.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.1248, allocations: 326.8 kB / 475.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.304e-05/0.1249, allocations: 36.36 kB / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.125, allocations: 75.94 kB / 475.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.1251, allocations: 51.98 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1251, allocations: 0 / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002562/0.1254, allocations: 157.6 kB / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1254, allocations: 11.94 kB / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1254, allocations: 0 / 476 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1254, allocations: 4 kB / 476 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1255, allocations: 23.92 kB / 476 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.1255, allocations: 4 kB / 476 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.644e-05/0.1256, allocations: 11.94 kB / 476 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1256, allocations: 4 kB / 476 MB, free: 8.891 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 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.983e-05/0.1257, allocations: 140.5 kB / 476.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.1258, allocations: 7.906 kB / 476.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.1258, allocations: 12.5 kB / 476.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1258, allocations: 3.984 kB / 476.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1258, allocations: 0 / 476.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1258, allocations: 0 / 476.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004951/0.1263, allocations: 450.3 kB / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1263, allocations: 0 / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.523e-05/0.1264, allocations: 11.98 kB / 476.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1264, allocations: 0 / 476.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.1264, allocations: 4 kB / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1264, allocations: 0 / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1264, allocations: 0 / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.1267, allocations: 266.3 kB / 476.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.1268, allocations: 92.94 kB / 477 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.1268, allocations: 0 / 477 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.1269, allocations: 15.98 kB / 477 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.127, allocations: 4 kB / 477 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.127, allocations: 11.98 kB / 477 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.1271, allocations: 95.58 kB / 477.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1271, allocations: 4 kB / 477.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1273, allocations: 24 kB / 477.1 MB, free: 7.672 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005701/0.1279, allocations: 0.7942 MB / 477.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.1282, allocations: 111.9 kB / 478 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1282, allocations: 3.938 kB / 478 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1283, allocations: 51.92 kB / 478.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.1285, allocations: 11.98 kB / 478.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.1299, allocations: 1.4 MB / 479.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1302, allocations: 0.7043 MB / 480.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.072e-05/0.1303, allocations: 4.891 kB / 480.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.1303, allocations: 27.42 kB / 480.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1303, allocations: 0 / 480.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01165/0.142, allocations: 1.857 MB / 482.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.1422, allocations: 173.3 kB / 482.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.814, allocations: 0 / 482.3 MB, free: 2.449 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat