Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00312/0.003121, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.205/2.205, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001248/0.001247, allocations: 90.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3605/0.3605, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004921/0.0004923, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.137, allocations: 58.85 MB / 490.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002326/0.1394, allocations: 1.217 MB / 491.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1407, allocations: 0.4962 MB / 492 MB, free: 7.523 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.227e-05/0.1407, allocations: 4 kB / 492 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.653e-05/0.1408, allocations: 7.922 kB / 492 MB, free: 7.512 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.1409, allocations: 3.984 kB / 492 MB, free: 7.508 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.1412, allocations: 39.83 kB / 492.1 MB, free: 7.469 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.1413, allocations: 47.94 kB / 492.1 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1414, allocations: 19.97 kB / 492.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.1416, allocations: 35.84 kB / 492.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.1417, allocations: 31.89 kB / 492.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.1418, allocations: 7.938 kB / 492.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.306e-05/0.1418, allocations: 4 kB / 492.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.267e-05/0.1418, allocations: 15.98 kB / 492.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.1419, allocations: 37.64 kB / 492.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.142, allocations: 52.11 kB / 492.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1421, allocations: 0 / 492.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1421, allocations: 0 / 492.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1421, allocations: 4 kB / 492.3 MB, free: 7.211 MB / 330.7 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.0008618/0.143, allocations: 387.1 kB / 492.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.143, allocations: 8.031 kB / 492.7 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.704e-05/0.1431, allocations: 38.55 kB / 492.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.1432, allocations: 23.8 kB / 492.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.1434, allocations: 178.9 kB / 492.9 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.1434, allocations: 8 kB / 493 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.1435, allocations: 4 kB / 493 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.1438, allocations: 89.64 kB / 493 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1438, allocations: 0 / 493 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1438, allocations: 0 / 493 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1438, allocations: 0 / 493 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1441, allocations: 51.97 kB / 493.1 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008305/0.1449, allocations: 328.7 kB / 493.4 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.1452, allocations: 94.48 kB / 493.5 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.1453, allocations: 8 kB / 493.5 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.1456, allocations: 95.36 kB / 493.6 MB, free: 5.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.766e-06/0.1456, allocations: 0 / 493.6 MB, free: 5.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006994/0.1463, allocations: 193.5 kB / 493.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.1464, allocations: 63.41 kB / 493.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1466, allocations: 118 kB / 494 MB, free: 5.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.1466, allocations: 29.7 kB / 494 MB, free: 5.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.898e-05/0.1467, allocations: 162.8 kB / 494.2 MB, free: 5.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.1468, allocations: 31.55 kB / 494.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.1468, allocations: 4 kB / 494.2 MB, free: 5.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.147, allocations: 322.8 kB / 494.5 MB, free: 4.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1471, allocations: 36.58 kB / 494.6 MB, free: 4.766 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.1473, allocations: 77.81 kB / 494.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.1475, allocations: 55.92 kB / 494.7 MB, free: 4.617 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1476, allocations: 0 / 494.7 MB, free: 4.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004532/0.148, allocations: 153.4 kB / 494.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.1481, allocations: 10.66 kB / 494.8 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1481, allocations: 384 / 494.8 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.1481, allocations: 4 kB / 494.8 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.1483, allocations: 28.09 kB / 494.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1483, allocations: 3.938 kB / 494.9 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1485, allocations: 23.78 kB / 494.9 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.1485, allocations: 4 kB / 494.9 MB, free: 4.391 MB / 330.7 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 0.0001717/0.1487, allocations: 136 kB / 495 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.1487, allocations: 7.906 kB / 495 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.1488, allocations: 20.44 kB / 495.1 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1488, allocations: 0 / 495.1 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-05/0.1488, allocations: 7.953 kB / 495.1 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1488, allocations: 0 / 495.1 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008847/0.1497, allocations: 438.4 kB / 495.5 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1498, allocations: 4 kB / 495.5 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.724e-05/0.1499, allocations: 7.984 kB / 495.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.1499, allocations: 4 kB / 495.5 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.1499, allocations: 3.953 kB / 495.5 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1499, allocations: 4 kB / 495.5 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.15, allocations: 3.938 kB / 495.5 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000521/0.1505, allocations: 247.4 kB / 495.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/0.1506, allocations: 92.94 kB / 495.9 MB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1506, allocations: 4 kB / 495.9 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.1508, allocations: 19.94 kB / 495.9 MB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.1509, allocations: 12 kB / 495.9 MB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.1509, allocations: 7.984 kB / 495.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.389e-05/0.151, allocations: 91.27 kB / 496 MB, free: 3.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.151, allocations: 0 / 496 MB, free: 3.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003844/0.1514, allocations: 24 kB / 496 MB, free: 3.176 MB / 330.7 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.0009797/0.1524, allocations: 0.7795 MB / 496.8 MB, free: 2.371 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004838/0.1529, allocations: 112.1 kB / 496.9 MB, free: 2.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.153, allocations: 0 / 496.9 MB, free: 2.262 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.1532, allocations: 60.22 kB / 497 MB, free: 2.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1535, allocations: 16.39 kB / 497 MB, free: 2.188 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/0.1556, allocations: 1.436 MB / 498.4 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1561, allocations: 0.7004 MB / 499.1 MB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.544e-05/0.1562, allocations: 23.44 kB / 499.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1562, allocations: 0 / 499.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.563/2.719, allocations: 1.522 MB / 0.4889 GB, free: 14.41 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat