Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001531/0.001531, allocations: 181.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.2 MB / 219 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001571/0.001571, allocations: 90.55 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.111/0.111, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.905e-05/3.928e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4564/0.568, allocations: 77.99 MB / 0.5024 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/0.5685, allocations: 79.7 kB / 0.5025 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007433/0.5759, allocations: 1.291 MB / 0.5037 GB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.576, allocations: 0 / 0.5037 GB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.576, allocations: 0 / 0.5037 GB, free: 11.47 MB / 330.7 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.0006831/0.5767, allocations: 359.9 kB / 0.5041 GB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.904e-05/0.5768, allocations: 11.47 kB / 0.5041 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.5769, allocations: 34.5 kB / 0.5041 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.071e-05/0.577, allocations: 10.47 kB / 0.5041 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.5772, allocations: 181.2 kB / 0.5043 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.5773, allocations: 7.453 kB / 0.5043 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.5773, allocations: 3.844 kB / 0.5043 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.5778, allocations: 137 kB / 0.5045 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.5778, allocations: 0 / 0.5045 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.5779, allocations: 0 / 0.5045 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.5779, allocations: 2.625 kB / 0.5045 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.578, allocations: 18.03 kB / 0.5045 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.5782, allocations: 167 kB / 0.5046 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/0.5785, allocations: 128.8 kB / 0.5048 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.5786, allocations: 35.14 kB / 0.5048 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.5787, allocations: 3.844 kB / 0.5048 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.5787, allocations: 34.44 kB / 0.5048 GB, free: 10.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.074e-06/0.5787, allocations: 0 / 0.5048 GB, free: 10.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002644/0.579, allocations: 62.61 kB / 0.5049 GB, free: 10.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.141e-05/0.5791, allocations: 60.67 kB / 0.5049 GB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.5792, allocations: 98.88 kB / 0.505 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.5792, allocations: 29.7 kB / 0.5051 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.574e-05/0.5793, allocations: 89.73 kB / 0.5052 GB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.5793, allocations: 0 / 0.5052 GB, free: 10.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.5793, allocations: 0 / 0.5052 GB, free: 10.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.5794, allocations: 316.8 kB / 0.5055 GB, free: 9.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.057e-05/0.5795, allocations: 11.12 kB / 0.5055 GB, free: 9.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.201e-05/0.5796, allocations: 44.16 kB / 0.5055 GB, free: 9.766 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.362e-05/0.5796, allocations: 13.17 kB / 0.5055 GB, free: 9.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.5797, allocations: 3.938 kB / 0.5055 GB, free: 9.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001884/0.5799, allocations: 78.33 kB / 0.5056 GB, free: 9.715 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.5799, allocations: 10.94 kB / 0.5056 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.5799, allocations: 0 / 0.5056 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.58, allocations: 3.844 kB / 0.5056 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.922e-05/0.5801, allocations: 7.688 kB / 0.5056 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.5801, allocations: 4.641 kB / 0.5056 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.686e-05/0.5802, allocations: 4.719 kB / 0.5056 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.5802, allocations: 3.844 kB / 0.5056 GB, free: 9.707 MB / 330.7 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 () * 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 9.056e-05/0.5803, allocations: 108.1 kB / 0.5057 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.5805, allocations: 69.06 kB / 0.5058 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.887e-05/0.5806, allocations: 16.02 kB / 0.5058 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.5806, allocations: 4 kB / 0.5058 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.5806, allocations: 0 / 0.5058 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.5806, allocations: 0 / 0.5058 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.5808, allocations: 160.8 kB / 0.506 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5808, allocations: 6.328 kB / 0.506 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.581, allocations: 3.75 kB / 0.506 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.581, allocations: 3.938 kB / 0.506 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.581, allocations: 2.672 kB / 0.506 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.581, allocations: 11.8 kB / 0.506 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5811, allocations: 0 / 0.506 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.5813, allocations: 94.33 kB / 0.5061 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.942e-05/0.5813, allocations: 81.02 kB / 0.5062 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.5814, allocations: 0 / 0.5062 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.5816, allocations: 16.83 kB / 0.5062 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.655e-06/0.5816, allocations: 3.953 kB / 0.5062 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.5817, allocations: 4 kB / 0.5062 GB, free: 9.168 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.998e-05/0.5817, allocations: 90.42 kB / 0.5063 GB, free: 9.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5817, allocations: 0 / 0.5063 GB, free: 9.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004635/0.5822, allocations: 10.75 kB / 0.5063 GB, free: 9.09 MB / 330.7 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 () * 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.0006019/0.5828, allocations: 0.6415 MB / 0.5069 GB, free: 8.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.5831, allocations: 38.06 kB / 0.507 GB, free: 8.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5831, allocations: 0 / 0.507 GB, free: 8.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.014e-06/0.5831, allocations: 0 / 0.507 GB, free: 8.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.5836, allocations: 40.08 kB / 0.507 GB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005878/0.5842, allocations: 123.8 kB / 0.5071 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.5844, allocations: 0.6859 MB / 0.5078 GB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.409e-05/0.5844, allocations: 6.953 kB / 0.5078 GB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.5845, allocations: 14.34 kB / 0.5078 GB, free: 7.66 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5845, allocations: 0 / 0.5078 GB, free: 7.66 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.6088, allocations: 1.434 MB / 0.5092 GB, free: 7.355 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/0.6091, allocations: 191.1 kB / 0.5094 GB, free: 7.125 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/2.968, allocations: 0 / 0.5094 GB, free: 7.125 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat does not exist to compare? outputFormat=mat