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.0009769/0.0009771, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 176.9 kB / 16.58 MB, free: 6.844 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.595/1.595, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.3917/0.3917, allocations: 43.55 MB / 314.6 MB, free: 9.023 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.0005295/0.0005296, allocations: 12 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.126, allocations: 58.86 MB / 442.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001852/0.1279, allocations: 1.232 MB / 444.1 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008929/0.1288, allocations: 500 kB / 444.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.1289, allocations: 0 / 444.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.092e-05/0.1289, allocations: 7.922 kB / 444.6 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.097e-05/0.129, allocations: 15.92 kB / 444.6 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.1292, allocations: 27.91 kB / 444.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.1294, allocations: 79.77 kB / 444.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.474e-05/0.1295, allocations: 11.97 kB / 444.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.1296, allocations: 35.86 kB / 444.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.607e-05/0.1297, allocations: 39.81 kB / 444.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.1297, allocations: 4 kB / 444.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.55e-05/0.1297, allocations: 4 kB / 444.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.1298, allocations: 19.98 kB / 444.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.1298, allocations: 37.64 kB / 444.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.451e-05/0.1299, allocations: 52.12 kB / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1299, allocations: 3.984 kB / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1299, allocations: 0 / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1299, allocations: 0 / 444.9 MB, free: 11.11 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.0005991/0.1305, allocations: 387.1 kB / 445.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1306, allocations: 8.031 kB / 445.3 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.774e-05/0.1306, allocations: 42.55 kB / 445.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.1307, allocations: 11.86 kB / 445.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.1308, allocations: 178.8 kB / 445.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.1308, allocations: 11.98 kB / 445.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.1309, allocations: 4 kB / 445.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001923/0.1311, allocations: 89.64 kB / 445.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.1311, allocations: 0 / 445.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.1311, allocations: 4 kB / 445.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1311, allocations: 7.953 kB / 445.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.1312, allocations: 43.97 kB / 445.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.1317, allocations: 332.8 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.1319, allocations: 90.48 kB / 446.1 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.78e-05/0.132, allocations: 44.84 kB / 446.2 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.1321, allocations: 0 / 446.2 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.1323, allocations: 107.2 kB / 446.3 MB, free: 9.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 3.587e-06/0.1323, allocations: 3.984 kB / 446.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004066/0.1327, allocations: 202 kB / 446.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.1328, allocations: 55.41 kB / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.404e-05/0.1329, allocations: 114 kB / 446.6 MB, free: 9.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.1329, allocations: 41.69 kB / 446.7 MB, free: 9.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.1329, allocations: 88.42 kB / 446.8 MB, free: 9.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.133, allocations: 39.53 kB / 446.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.133, allocations: 0 / 446.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1331, allocations: 326.8 kB / 447.1 MB, free: 8.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.866e-05/0.1332, allocations: 32.36 kB / 447.1 MB, free: 8.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.1333, allocations: 85.81 kB / 447.2 MB, free: 8.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.564e-05/0.1334, allocations: 40 kB / 447.3 MB, free: 8.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1334, allocations: 0 / 447.3 MB, free: 8.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000254/0.1337, allocations: 165.6 kB / 447.4 MB, free: 8.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1337, allocations: 11.94 kB / 447.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.1337, allocations: 4 kB / 447.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1337, allocations: 0 / 447.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1339, allocations: 24.3 kB / 447.5 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1339, allocations: 4 kB / 447.5 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.1339, allocations: 16 kB / 447.5 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.134, allocations: 12 kB / 447.5 MB, free: 8.285 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 ($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.592e-05/0.1341, allocations: 136 kB / 447.6 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.685e-05/0.1341, allocations: 7.906 kB / 447.6 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.1341, allocations: 16.44 kB / 447.7 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1341, allocations: 4 kB / 447.7 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1341, allocations: 0 / 447.7 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1341, allocations: 0 / 447.7 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004974/0.1346, allocations: 438.4 kB / 448.1 MB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1347, allocations: 3.953 kB / 448.1 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.399e-05/0.1347, allocations: 15.92 kB / 448.1 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1347, allocations: 0 / 448.1 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1348, allocations: 4 kB / 448.1 MB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1348, allocations: 0 / 448.1 MB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1348, allocations: 0 / 448.1 MB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.1351, allocations: 255.5 kB / 448.4 MB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.1351, allocations: 92.91 kB / 448.5 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.1351, allocations: 7.984 kB / 448.5 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.1352, allocations: 11.94 kB / 448.5 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.1353, allocations: 7.984 kB / 448.5 MB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.1353, allocations: 8 kB / 448.5 MB, free: 7.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.752e-05/0.1354, allocations: 99.2 kB / 448.6 MB, free: 7.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1354, allocations: 0 / 448.6 MB, free: 7.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002487/0.1356, allocations: 23.91 kB / 448.6 MB, free: 7.082 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 (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.0005635/0.1362, allocations: 0.7866 MB / 449.4 MB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002367/0.1365, allocations: 107.8 kB / 449.5 MB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1365, allocations: 0 / 449.5 MB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.1366, allocations: 51.97 kB / 449.6 MB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.1368, allocations: 12.3 kB / 449.6 MB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.1379, allocations: 0.6574 MB / 450.2 MB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.1383, allocations: 0.6965 MB / 450.9 MB, free: 4.648 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.595e-05/0.1384, allocations: 20.86 kB / 450.9 MB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.948e-05/0.1384, allocations: 27.38 kB / 451 MB, free: 4.602 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1384, allocations: 4 kB / 451 MB, free: 4.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.1507, allocations: 1.873 MB / 452.8 MB, free: 2.758 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.1509, allocations: 181.6 kB / 453 MB, free: 2.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.812, allocations: 0 / 453 MB, free: 2.508 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat