Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.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.TimeBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",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.001476/0.001476, allocations: 97.33 kB / 16.3 MB, free: 5.992 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.00169/0.00169, allocations: 187.3 kB / 17.2 MB, free: 5.91 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.57/1.57, allocations: 223.2 MB / 241.1 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 6.156 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1286, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.001774/0.1305, allocations: 1.185 MB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007352/0.1312, allocations: 431.3 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.054e-05/0.1313, allocations: 0 / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.055e-05/0.1313, allocations: 3.984 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.1315, allocations: 7.969 kB / 352.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1317, allocations: 31.91 kB / 352.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.1319, allocations: 23.97 kB / 352.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.132, allocations: 23.97 kB / 352.9 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.256e-05/0.1321, allocations: 11.94 kB / 352.9 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.395e-05/0.1321, allocations: 23.91 kB / 353 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.1322, allocations: 4 kB / 353 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.392e-05/0.1322, allocations: 3.938 kB / 353 MB, free: 9.891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.1322, allocations: 7.922 kB / 353 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.162e-05/0.1323, allocations: 33.7 kB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.1324, allocations: 23.94 kB / 353 MB, free: 9.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1324, allocations: 0 / 353 MB, free: 9.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1324, allocations: 0 / 353 MB, free: 9.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1324, allocations: 4 kB / 353 MB, free: 9.816 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007311/0.1332, allocations: 363.2 kB / 353.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1332, allocations: 8.031 kB / 353.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.1333, allocations: 38.55 kB / 353.4 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.1334, allocations: 11.86 kB / 353.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.1336, allocations: 178.9 kB / 353.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.1336, allocations: 8 kB / 353.6 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.1337, allocations: 4 kB / 353.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005017/0.1342, allocations: 151 kB / 353.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.1342, allocations: 0 / 353.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1342, allocations: 4 kB / 353.8 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1342, allocations: 7.953 kB / 353.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.1344, allocations: 27.98 kB / 353.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.1347, allocations: 165.6 kB / 354 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.135, allocations: 135.7 kB / 354.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.135, allocations: 0 / 354.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1351, allocations: 42.67 kB / 354.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.1351, allocations: 0 / 354.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003326/0.1354, allocations: 85.61 kB / 354.2 MB, free: 8.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.514e-05/0.1355, allocations: 59.41 kB / 354.3 MB, free: 8.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.1356, allocations: 117.7 kB / 354.4 MB, free: 8.215 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.1357, allocations: 29.7 kB / 354.4 MB, free: 8.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.464e-05/0.1358, allocations: 88.14 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.1358, allocations: 7.938 kB / 354.5 MB, free: 8.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.1358, allocations: 0 / 354.5 MB, free: 8.082 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.136, allocations: 318.8 kB / 354.8 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.606e-05/0.136, allocations: 11.98 kB / 354.9 MB, free: 7.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.801e-05/0.1361, allocations: 37.16 kB / 354.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.793e-05/0.1361, allocations: 19.98 kB / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1361, allocations: 0 / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001637/0.1363, allocations: 77.5 kB / 355 MB, free: 7.594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1364, allocations: 6.188 kB / 355 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1364, allocations: 4.188 kB / 355 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.1364, allocations: 4 kB / 355 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.479e-05/0.1365, allocations: 8 kB / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1365, allocations: 0 / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.171e-05/0.1366, allocations: 8.156 kB / 355 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1366, allocations: 3.953 kB / 355 MB, free: 7.562 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: 3 (assignClock1.y,assignClock1.u,pulse.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001246/0.1367, allocations: 121.8 kB / 355.1 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.137, allocations: 73.62 kB / 355.2 MB, free: 7.355 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.635e-05/0.137, allocations: 12.38 kB / 355.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1371, allocations: 0 / 355.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1371, allocations: 0 / 355.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1371, allocations: 3.984 kB / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.1373, allocations: 169.5 kB / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1373, allocations: 0 / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-05/0.1374, allocations: 8 kB / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1374, allocations: 0 / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.1374, allocations: 11.92 kB / 355.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1374, allocations: 0 / 355.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1374, allocations: 0 / 355.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.1377, allocations: 108.9 kB / 355.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.1377, allocations: 77.11 kB / 355.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.1378, allocations: 4 kB / 355.6 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.1379, allocations: 15.98 kB / 355.6 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-06/0.1379, allocations: 0 / 355.6 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.1379, allocations: 4 kB / 355.6 MB, free: 6.859 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.133e-05/0.138, allocations: 95.2 kB / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.138, allocations: 0 / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003578/0.1384, allocations: 8 kB / 355.7 MB, free: 6.758 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 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0007561/0.1391, allocations: 0.6671 MB / 356.4 MB, free: 6.062 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.1393, allocations: 43.91 kB / 356.4 MB, free: 6.02 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1393, allocations: 0 / 356.4 MB, free: 6.02 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.1393, allocations: 0 / 356.4 MB, free: 6.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.1397, allocations: 36.02 kB / 356.5 MB, free: 5.984 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.1412, allocations: 1.188 MB / 357.7 MB, free: 4.723 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005885/0.1418, allocations: 0.6887 MB / 358.3 MB, free: 4.008 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.193e-05/0.1419, allocations: 8.188 kB / 358.4 MB, free: 4 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.451e-05/0.142, allocations: 11.44 kB / 358.4 MB, free: 3.988 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.142, allocations: 0 / 358.4 MB, free: 3.988 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01525/0.1572, allocations: 1.415 MB / 359.8 MB, free: 2.754 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003359/0.1576, allocations: 202.3 kB / 360 MB, free: 2.512 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.014, allocations: 2.188 kB / 360 MB, free: 2.512 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat does not exist to compare? outputFormat=mat