Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",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.0008529/0.0008531, allocations: 83.55 kB / 16.31 MB, free: 6.449 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.0008117/0.0008117, allocations: 184.2 kB / 17.21 MB, free: 6.316 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.521/1.521, allocations: 223.3 MB / 241.2 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002938, allocations: 6.625 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 50.43 MB / 351.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001673/0.1262, allocations: 1.146 MB / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002796/0.1265, allocations: 99.7 kB / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.632e-05/0.1266, allocations: 0 / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.1266, allocations: 3.938 kB / 352.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.1267, allocations: 3.984 kB / 352.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.1269, allocations: 22.73 kB / 352.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.759e-05/0.127, allocations: 23.88 kB / 352.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.132e-05/0.1271, allocations: 23.95 kB / 352.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.7e-05/0.1271, allocations: 3.938 kB / 352.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.357e-05/0.1272, allocations: 11.92 kB / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.1272, allocations: 0 / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.122e-05/0.1272, allocations: 4 kB / 352.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.1272, allocations: 7.938 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.1273, allocations: 25.7 kB / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.639e-05/0.1273, allocations: 19.97 kB / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1273, allocations: 0 / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1274, allocations: 0 / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.1274, allocations: 4 kB / 352.7 MB, free: 10.13 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003973/0.1278, allocations: 337.7 kB / 353.1 MB, free: 9.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1278, allocations: 8.031 kB / 353.1 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.1279, allocations: 38.56 kB / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.217e-05/0.1279, allocations: 3.953 kB / 353.1 MB, free: 9.695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.1281, allocations: 174.9 kB / 353.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.1281, allocations: 7.938 kB / 353.3 MB, free: 9.477 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.1281, allocations: 4 kB / 353.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.1285, allocations: 111.3 kB / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.1285, allocations: 0 / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.1285, allocations: 0 / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1285, allocations: 7.953 kB / 353.4 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.008e-05/0.1286, allocations: 23.98 kB / 353.4 MB, free: 9.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.1288, allocations: 157.7 kB / 353.6 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.1289, allocations: 58.55 kB / 353.6 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.129e-05/0.129, allocations: 32.77 kB / 353.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.129, allocations: 4.031 kB / 353.7 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.129, allocations: 34.56 kB / 353.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.1291, allocations: 0 / 353.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002209/0.1293, allocations: 77.58 kB / 353.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.1293, allocations: 59.41 kB / 353.8 MB, free: 8.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.277e-05/0.1294, allocations: 105.8 kB / 354 MB, free: 8.703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1294, allocations: 29.7 kB / 354 MB, free: 8.668 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.1295, allocations: 80.14 kB / 354.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.715e-06/0.1295, allocations: 4 kB / 354.1 MB, free: 8.582 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.1295, allocations: 0 / 354.1 MB, free: 8.582 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1296, allocations: 314.8 kB / 354.4 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.1296, allocations: 15.92 kB / 354.4 MB, free: 8.25 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.925e-05/0.1297, allocations: 27.44 kB / 354.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.095e-05/0.1297, allocations: 4 kB / 354.4 MB, free: 8.207 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1297, allocations: 0 / 354.4 MB, free: 8.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.684e-05/0.1298, allocations: 61.72 kB / 354.5 MB, free: 8.141 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1298, allocations: 4 kB / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1298, allocations: 4.25 kB / 354.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.1298, allocations: 288 / 354.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.1299, allocations: 15.94 kB / 354.5 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1299, allocations: 0 / 354.5 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.13, allocations: 3.953 kB / 354.5 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.13, allocations: 4 kB / 354.5 MB, free: 8.109 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.57e-05/0.1301, allocations: 117.8 kB / 354.6 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.1302, allocations: 65.61 kB / 354.7 MB, free: 7.914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.135e-05/0.1302, allocations: 7.906 kB / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.1302, allocations: 0 / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1302, allocations: 0 / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1302, allocations: 4 kB / 354.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.1304, allocations: 165.5 kB / 354.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1304, allocations: 0 / 354.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.1304, allocations: 8 kB / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1304, allocations: 0 / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1304, allocations: 4 kB / 354.9 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1304, allocations: 0 / 354.9 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1304, allocations: 3.984 kB / 354.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.1306, allocations: 85.08 kB / 355 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.1306, allocations: 88.94 kB / 355 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.1307, allocations: 4 kB / 355.1 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.26e-05/0.1307, allocations: 4 kB / 355.1 MB, free: 7.453 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-06/0.1307, allocations: 0 / 355.1 MB, free: 7.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.1307, allocations: 7.938 kB / 355.1 MB, free: 7.445 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.529e-05/0.1308, allocations: 83.28 kB / 355.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1308, allocations: 0 / 355.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001808/0.131, allocations: 4 kB / 355.1 MB, free: 7.359 MB / 286.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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0004771/0.1314, allocations: 0.628 MB / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.1316, allocations: 27.92 kB / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1316, allocations: 3.938 kB / 355.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1316, allocations: 0 / 355.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.1318, allocations: 24.28 kB / 355.8 MB, free: 6.648 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.1325, allocations: 389 kB / 356.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.1328, allocations: 0.6809 MB / 356.9 MB, free: 5.504 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.501e-05/0.1328, allocations: 0 / 356.9 MB, free: 5.504 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.041e-05/0.1329, allocations: 11.44 kB / 356.9 MB, free: 5.492 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1329, allocations: 0 / 356.9 MB, free: 5.492 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01126/0.1441, allocations: 1.027 MB / 357.9 MB, free: 4.637 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.1444, allocations: 218.9 kB / 358.1 MB, free: 4.387 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.009, allocations: 0 / 358.1 MB, free: 4.387 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat