Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.0009797/0.0009798, allocations: 88.53 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.001038/0.001038, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.48/1.48, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002887/0.0002887, allocations: 7.312 kB / 300.9 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1356, allocations: 50.43 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00244/0.1381, allocations: 1.569 MB / 352.9 MB, free: 10 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1398, allocations: 1.061 MB / 354 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.14, allocations: 0 / 354 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003191/0.1403, allocations: 67.7 kB / 354 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.1405, allocations: 75.67 kB / 354.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007779/0.1413, allocations: 230.2 kB / 354.3 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.1416, allocations: 143.6 kB / 354.5 MB, free: 8.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.1417, allocations: 33.47 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1418, allocations: 63.64 kB / 354.6 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.142, allocations: 67.69 kB / 354.6 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.142, allocations: 4 kB / 354.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.1421, allocations: 51.95 kB / 354.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-05/0.1422, allocations: 47.84 kB / 354.7 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.855e-05/0.1423, allocations: 53.58 kB / 354.8 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.1425, allocations: 175.6 kB / 355 MB, free: 7.938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1425, allocations: 0 / 355 MB, free: 7.938 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1425, allocations: 0 / 355 MB, free: 7.938 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1425, allocations: 0 / 355 MB, free: 7.938 MB / 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.0008345/0.1434, allocations: 0.5062 MB / 355.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.1435, allocations: 8.031 kB / 355.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.137e-05/0.1435, allocations: 42.52 kB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.705e-05/0.1436, allocations: 27.72 kB / 355.5 MB, free: 7.293 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.144, allocations: 274.4 kB / 355.8 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.144, allocations: 8 kB / 355.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.144, allocations: 7.938 kB / 355.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.1444, allocations: 186.5 kB / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1445, allocations: 0 / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1445, allocations: 0 / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.1445, allocations: 3.953 kB / 356 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.1446, allocations: 39.92 kB / 356.1 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005886/0.1452, allocations: 470.6 kB / 356.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.1455, allocations: 142.5 kB / 356.7 MB, free: 6.023 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.1456, allocations: 55.42 kB / 356.7 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.1457, allocations: 3.953 kB / 356.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.1459, allocations: 109 kB / 356.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.1459, allocations: 0 / 356.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.000416/0.1464, allocations: 165.3 kB / 357 MB, free: 5.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.1465, allocations: 183.9 kB / 357.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.1469, allocations: 334.9 kB / 357.5 MB, free: 5.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.1469, allocations: 37.7 kB / 357.5 MB, free: 5.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1471, allocations: 120.4 kB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.1471, allocations: 19.8 kB / 357.7 MB, free: 4.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.1471, allocations: 4 kB / 357.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1473, allocations: 330.8 kB / 358 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.41e-05/0.1474, allocations: 27.92 kB / 358 MB, free: 4.547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.1475, allocations: 95.7 kB / 358.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.923e-05/0.1476, allocations: 35.92 kB / 358.1 MB, free: 4.391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1476, allocations: 4 kB / 358.1 MB, free: 4.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002466/0.1479, allocations: 141.2 kB / 358.3 MB, free: 4.242 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1479, allocations: 7.984 kB / 358.3 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1479, allocations: 3.938 kB / 358.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.148, allocations: 4 kB / 358.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1481, allocations: 23.94 kB / 358.3 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.1481, allocations: 7.984 kB / 358.3 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.146e-05/0.1482, allocations: 7.938 kB / 358.3 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.1482, allocations: 4 kB / 358.3 MB, free: 4.184 MB / 286.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.000183/0.1484, allocations: 158.5 kB / 358.5 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.763e-05/0.1485, allocations: 73.36 kB / 358.6 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.1486, allocations: 29.7 kB / 358.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1486, allocations: 0 / 358.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1486, allocations: 4.312 kB / 358.6 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1486, allocations: 0 / 358.6 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.1489, allocations: 245.5 kB / 358.8 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.1489, allocations: 8 kB / 358.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.224e-05/0.149, allocations: 24.03 kB / 358.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.149, allocations: 3.984 kB / 358.9 MB, free: 3.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.149, allocations: 7.953 kB / 358.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.149, allocations: 0 / 358.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.149, allocations: 0 / 358.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.1493, allocations: 183.3 kB / 359.1 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1495, allocations: 116.9 kB / 359.2 MB, free: 3.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.1495, allocations: 4 kB / 359.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.949e-05/0.1496, allocations: 11.94 kB / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/0.1497, allocations: 11.98 kB / 359.2 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.1497, allocations: 8 kB / 359.2 MB, free: 3.199 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.15, allocations: 237.9 kB / 359.4 MB, free: 2.969 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.15, allocations: 0 / 359.4 MB, free: 2.969 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.1503, allocations: 47.83 kB / 359.5 MB, free: 2.922 MB / 286.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.001593/0.1519, allocations: 1.036 MB / 360.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.1522, allocations: 75.91 kB / 360.6 MB, free: 1.938 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1522, allocations: 0 / 360.6 MB, free: 1.938 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.1523, allocations: 39.91 kB / 360.6 MB, free: 1.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.1528, allocations: 68.38 kB / 360.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.1548, allocations: 1.218 MB / 361.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.1552, allocations: 0.744 MB / 362.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.896e-05/0.1553, allocations: 29.53 kB / 362.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.1554, allocations: 63.41 kB / 362.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1554, allocations: 3.938 kB / 362.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.1752, allocations: 4.785 MB / 367.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.1755, allocations: 235.5 kB / 367.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.24, allocations: 4 kB / 367.8 MB, free: 10.81 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat