Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",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.0009764/0.0009763, allocations: 84.19 kB / 16.31 MB, free: 6.453 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.001186/0.001186, allocations: 179.3 kB / 17.21 MB, free: 6.328 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.505/1.505, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003908, allocations: 8 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1297, allocations: 50.41 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.00266/0.1324, allocations: 1.57 MB / 352.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1341, allocations: 0.9867 MB / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1343, allocations: 3.938 kB / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006187/0.1349, allocations: 143.7 kB / 354 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.1351, allocations: 91.7 kB / 354.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.1357, allocations: 178.8 kB / 354.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.136, allocations: 167.4 kB / 354.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.1362, allocations: 29.53 kB / 354.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.1363, allocations: 71.64 kB / 354.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.1365, allocations: 63.7 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.1365, allocations: 4 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.1366, allocations: 35.97 kB / 354.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.1367, allocations: 39.83 kB / 354.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.913e-05/0.1368, allocations: 53.58 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.1371, allocations: 155.9 kB / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.1371, allocations: 0 / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1371, allocations: 0 / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1371, allocations: 0 / 354.9 MB, free: 324 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009405/0.138, allocations: 496.1 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.1381, allocations: 8.031 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.375e-05/0.1381, allocations: 46.5 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.1382, allocations: 19.72 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.1385, allocations: 253.7 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1386, allocations: 8 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.1386, allocations: 7.938 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003463/0.1389, allocations: 163.6 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.139, allocations: 0 / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.139, allocations: 0 / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.139, allocations: 7.953 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.1391, allocations: 39.91 kB / 355.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005415/0.1397, allocations: 458.5 kB / 356.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.1399, allocations: 130.5 kB / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.14, allocations: 59.36 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.1401, allocations: 12.02 kB / 356.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.1403, allocations: 89.09 kB / 356.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.1403, allocations: 0 / 356.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003681/0.1407, allocations: 149.7 kB / 356.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/0.1408, allocations: 174.2 kB / 357 MB, free: 13.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.141, allocations: 268.9 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.1411, allocations: 25.7 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.683e-05/0.1412, allocations: 116.4 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.1412, allocations: 15.81 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-06/0.1412, allocations: 3.938 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1414, allocations: 330.8 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.515e-05/0.1415, allocations: 27.98 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.1416, allocations: 74.86 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.485e-05/0.1416, allocations: 35.97 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1417, allocations: 0 / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000221/0.1419, allocations: 129.3 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1419, allocations: 8 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1419, allocations: 0 / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1419, allocations: 0 / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.932e-05/0.142, allocations: 16 kB / 358 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.142, allocations: 8.156 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.26e-05/0.1421, allocations: 19.81 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.1421, allocations: 4 kB / 358 MB, free: 12.82 MB / 302.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: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001398/0.1423, allocations: 141.8 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.848e-05/0.1424, allocations: 69.47 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.1424, allocations: 29.64 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1424, allocations: 3.938 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1425, allocations: 8.062 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.1425, allocations: 3.984 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.1427, allocations: 225.6 kB / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1427, allocations: 320 / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.821e-05/0.1428, allocations: 7.984 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1428, allocations: 4 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.1428, allocations: 11.95 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1428, allocations: 4 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1428, allocations: 0 / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.1431, allocations: 171.3 kB / 358.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.335e-05/0.1432, allocations: 108.8 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.1432, allocations: 11.98 kB / 358.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.081e-05/0.1433, allocations: 7.953 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/0.1433, allocations: 7.984 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.1433, allocations: 8 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.1435, allocations: 192.5 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1435, allocations: 7.938 kB / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1438, allocations: 31.91 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001395/0.1452, allocations: 1.019 MB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002124/0.1454, allocations: 79.84 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1454, allocations: 0 / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.449e-05/0.1455, allocations: 28.3 kB / 360.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.1459, allocations: 79.2 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1475, allocations: 1.007 MB / 361.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1478, allocations: 0.7322 MB / 362 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.677e-05/0.1479, allocations: 33.39 kB / 362.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.148, allocations: 47.42 kB / 362.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1481, allocations: 0 / 362.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.1633, allocations: 4.168 MB / 366.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.1635, allocations: 235.1 kB / 366.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.211, allocations: 3.234 kB / 366.5 MB, free: 4.43 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat