Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",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.0009892/0.0009892, allocations: 100.2 kB / 16.3 MB, free: 5.586 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.001082/0.001082, allocations: 182.3 kB / 17.19 MB, free: 5.523 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.517/1.517, allocations: 223.2 MB / 241.1 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002938, allocations: 4 kB / 300.8 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 50.41 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.001631/0.1272, allocations: 1.124 MB / 352.4 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001686/0.1274, allocations: 31.91 kB / 352.4 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.1275, allocations: 3.938 kB / 352.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.1275, allocations: 0 / 352.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.61e-05/0.1276, allocations: 4 kB / 352.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1278, allocations: 19.97 kB / 352.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.499e-05/0.1279, allocations: 15.92 kB / 352.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.128, allocations: 8 kB / 352.4 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.692e-05/0.1281, allocations: 8 kB / 352.4 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.278e-05/0.1281, allocations: 19.91 kB / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.1282, allocations: 0 / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.386e-05/0.1282, allocations: 4 kB / 352.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.1282, allocations: 0 / 352.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.1282, allocations: 29.64 kB / 352.5 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.354e-05/0.1283, allocations: 23.95 kB / 352.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1283, allocations: 0 / 352.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1283, allocations: 4 kB / 352.5 MB, free: 2.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1283, allocations: 0 / 352.5 MB, free: 2.617 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.0004466/0.1288, allocations: 339.5 kB / 352.9 MB, free: 2.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.1289, allocations: 12.03 kB / 352.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.1289, allocations: 34.55 kB / 352.9 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.1289, allocations: 3.953 kB / 352.9 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.1291, allocations: 179 kB / 353.1 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.1292, allocations: 0 / 353.1 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.1292, allocations: 4 kB / 353.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.1296, allocations: 119.3 kB / 353.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1296, allocations: 0 / 353.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.1296, allocations: 3.938 kB / 353.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1296, allocations: 7.953 kB / 353.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.969e-05/0.1297, allocations: 19.98 kB / 353.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.1299, allocations: 157.7 kB / 353.4 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.13, allocations: 50.59 kB / 353.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.1301, allocations: 7.984 kB / 353.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1301, allocations: 34.64 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.1301, allocations: 0 / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002501/0.1303, allocations: 77.59 kB / 353.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.1304, allocations: 59.41 kB / 353.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.1305, allocations: 109.7 kB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.1305, allocations: 25.7 kB / 353.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.1306, allocations: 84.14 kB / 353.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.1306, allocations: 4 kB / 353.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.1306, allocations: 0 / 353.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1308, allocations: 318.8 kB / 354.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.1308, allocations: 4 kB / 354.1 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.311e-05/0.1308, allocations: 27.44 kB / 354.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.821e-05/0.1308, allocations: 19.94 kB / 354.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1309, allocations: 3.938 kB / 354.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.068e-05/0.1309, allocations: 53.62 kB / 354.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.131, allocations: 10.5 kB / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.131, allocations: 0 / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.131, allocations: 0 / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.534e-05/0.1311, allocations: 4 kB / 354.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1311, allocations: 11.92 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.146e-05/0.1311, allocations: 8.125 kB / 354.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-06/0.1311, allocations: 7.953 kB / 354.3 MB, free: 0.6133 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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.794e-05/0.1312, allocations: 105.8 kB / 354.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.1314, allocations: 69.58 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.1314, allocations: 3.5 kB / 354.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1314, allocations: 0 / 354.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1314, allocations: 0 / 354.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1314, allocations: 0 / 354.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.1315, allocations: 165.5 kB / 354.6 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1316, allocations: 4 kB / 354.6 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.919e-05/0.1316, allocations: 4 kB / 354.6 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1316, allocations: 0 / 354.6 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1316, allocations: 4 kB / 354.6 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1316, allocations: 3.938 kB / 354.6 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1316, allocations: 4 kB / 354.6 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.1318, allocations: 85.06 kB / 354.7 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.351e-05/0.1319, allocations: 85.02 kB / 354.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.1319, allocations: 8.359 kB / 354.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.873e-05/0.1319, allocations: 7.938 kB / 354.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-06/0.1319, allocations: 4 kB / 354.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1319, allocations: 0 / 354.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.114e-05/0.132, allocations: 83.28 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.132, allocations: 0 / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001791/0.1322, allocations: 4 kB / 354.9 MB, free: 15.88 MB / 302.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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0005303/0.1327, allocations: 0.6545 MB / 355.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.1329, allocations: 32.19 kB / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1329, allocations: 0 / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-07/0.1329, allocations: 0 / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.1331, allocations: 30.77 kB / 355.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006935/0.1338, allocations: 0.8249 MB / 356.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.134, allocations: 0.6887 MB / 357.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.48e-05/0.1341, allocations: 0 / 357.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.1341, allocations: 11.44 kB / 357.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1341, allocations: 0 / 357.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01471/0.1488, allocations: 1.063 MB / 358.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003217/0.1492, allocations: 210.1 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/1.976, allocations: 0 / 358.4 MB, free: 12.38 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat