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.0009945/0.0009944, allocations: 96.98 kB / 15.69 MB, free: 488 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.001231/0.001231, allocations: 176.5 kB / 16.57 MB, free: 6.379 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.561/1.561, allocations: 205.4 MB / 222.7 MB, free: 5.688 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.397/0.397, allocations: 43.54 MB / 314.5 MB, free: 8.719 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.0005417/0.0005417, allocations: 20 kB / 384 MB, free: 7.953 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1488, allocations: 58.85 MB / 442.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002024/0.1509, allocations: 1.225 MB / 444.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.1519, allocations: 0.4962 MB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.133e-05/0.152, allocations: 0 / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.152, allocations: 3.938 kB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.1521, allocations: 11.98 kB / 444.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.1524, allocations: 31.89 kB / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1525, allocations: 51.88 kB / 444.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.1526, allocations: 11.98 kB / 444.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.1528, allocations: 39.89 kB / 444.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.915e-05/0.1529, allocations: 39.83 kB / 444.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.1529, allocations: 0 / 444.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.153, allocations: 4 kB / 444.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.761e-05/0.153, allocations: 15.92 kB / 444.8 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.577e-05/0.153, allocations: 37.7 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.659e-05/0.1532, allocations: 56.05 kB / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1532, allocations: 0 / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1532, allocations: 0 / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1532, allocations: 0 / 444.9 MB, free: 10.95 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.0006919/0.1539, allocations: 391.1 kB / 445.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.1539, allocations: 8.031 kB / 445.3 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.283e-05/0.154, allocations: 42.5 kB / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.1541, allocations: 15.84 kB / 445.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.1542, allocations: 170.9 kB / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.1543, allocations: 12 kB / 445.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.1543, allocations: 4 kB / 445.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.1545, allocations: 85.64 kB / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1545, allocations: 0 / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1545, allocations: 0 / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1546, allocations: 11.89 kB / 445.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.1547, allocations: 47.97 kB / 445.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000623/0.1553, allocations: 324.8 kB / 446 MB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.1555, allocations: 90.55 kB / 446 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.1556, allocations: 3.938 kB / 446 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.1559, allocations: 111.2 kB / 446.2 MB, free: 9.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.664e-06/0.1559, allocations: 0 / 446.2 MB, free: 9.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004581/0.1563, allocations: 193.6 kB / 446.3 MB, free: 9.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1564, allocations: 59.41 kB / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.1565, allocations: 118 kB / 446.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.1566, allocations: 33.7 kB / 446.5 MB, free: 9.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/0.1566, allocations: 88.42 kB / 446.6 MB, free: 8.965 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.785e-05/0.1567, allocations: 39.53 kB / 446.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.1567, allocations: 7.938 kB / 446.7 MB, free: 8.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1569, allocations: 322.8 kB / 447 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.731e-05/0.157, allocations: 32.58 kB / 447 MB, free: 8.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1571, allocations: 89.81 kB / 447.1 MB, free: 8.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.1573, allocations: 47.98 kB / 447.2 MB, free: 8.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1573, allocations: 0 / 447.2 MB, free: 8.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002842/0.1576, allocations: 161.4 kB / 447.3 MB, free: 8.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.1576, allocations: 4 kB / 447.3 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1576, allocations: 3.953 kB / 447.3 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.1577, allocations: 4 kB / 447.3 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.1578, allocations: 23.92 kB / 447.4 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1578, allocations: 4 kB / 447.4 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.057e-05/0.1579, allocations: 20 kB / 447.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.1579, allocations: 4 kB / 447.4 MB, free: 8.184 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 0.0001351/0.1581, allocations: 136 kB / 447.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.361e-05/0.1581, allocations: 7.906 kB / 447.5 MB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.1581, allocations: 16.44 kB / 447.5 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1581, allocations: 3.953 kB / 447.5 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1581, allocations: 0 / 447.5 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1582, allocations: 0 / 447.5 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005731/0.1587, allocations: 446.9 kB / 448 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1587, allocations: 0 / 448 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.87e-05/0.1588, allocations: 15.94 kB / 448 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1588, allocations: 384 / 448 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.1588, allocations: 4 kB / 448 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1589, allocations: 0 / 448 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1589, allocations: 4 kB / 448 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.1592, allocations: 255.5 kB / 448.3 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.1593, allocations: 88.95 kB / 448.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.1593, allocations: 11.94 kB / 448.4 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1594, allocations: 8 kB / 448.4 MB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.1595, allocations: 11.98 kB / 448.4 MB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.1595, allocations: 7.984 kB / 448.4 MB, free: 7.094 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.167e-05/0.1596, allocations: 87.28 kB / 448.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1596, allocations: 0 / 448.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.1599, allocations: 31.89 kB / 448.5 MB, free: 6.977 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.0006524/0.1606, allocations: 0.7827 MB / 449.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000254/0.1608, allocations: 103.9 kB / 449.4 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1608, allocations: 0 / 449.4 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.161, allocations: 55.91 kB / 449.4 MB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.1612, allocations: 20.25 kB / 449.5 MB, free: 5.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.1629, allocations: 1.407 MB / 450.9 MB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.1633, allocations: 0.7004 MB / 451.6 MB, free: 3.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.121e-05/0.1634, allocations: 8.875 kB / 451.6 MB, free: 3.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.848e-05/0.1635, allocations: 27.42 kB / 451.6 MB, free: 3.742 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1635, allocations: 0 / 451.6 MB, free: 3.742 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.177, allocations: 1.865 MB / 453.5 MB, free: 1.91 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.1772, allocations: 180 kB / 453.6 MB, free: 1.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.169, allocations: 0 / 453.6 MB, free: 1.66 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