Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",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.001652/0.001651, allocations: 185.1 kB / 15.8 MB, free: 6.316 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.044/2.044, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001145/0.001145, allocations: 106.8 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09517/0.09517, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005661/0.0005662, allocations: 12.81 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09236, allocations: 50.37 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.2312, allocations: 77.42 MB / 0.5077 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/0.2315, allocations: 71.95 kB / 0.5078 GB, free: 13.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003431/0.235, allocations: 0.8715 MB / 0.5086 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.235, allocations: 0 / 0.5086 GB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.2351, allocations: 4 kB / 0.5086 GB, free: 12.36 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005238/0.2356, allocations: 339.3 kB / 0.509 GB, free: 11.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.2357, allocations: 12.03 kB / 0.509 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.517e-05/0.2358, allocations: 34.5 kB / 0.509 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.2358, allocations: 7.906 kB / 0.509 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.2361, allocations: 183 kB / 0.5092 GB, free: 11.7 MB / 362.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.2363, allocations: 41.41 kB / 0.5092 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.2363, allocations: 4 kB / 0.5092 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/0.2367, allocations: 131.2 kB / 0.5093 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2368, allocations: 0 / 0.5093 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2368, allocations: 3.938 kB / 0.5093 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2368, allocations: 4 kB / 0.5094 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.479e-05/0.2369, allocations: 19.98 kB / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.2371, allocations: 161.7 kB / 0.5095 GB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.2374, allocations: 135.8 kB / 0.5097 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.2374, allocations: 4 kB / 0.5097 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.2375, allocations: 34.55 kB / 0.5097 GB, free: 11.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.984e-06/0.2375, allocations: 4 kB / 0.5097 GB, free: 11.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003372/0.2378, allocations: 154.8 kB / 0.5098 GB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.2379, allocations: 55.41 kB / 0.5099 GB, free: 10.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.661e-05/0.238, allocations: 101.2 kB / 0.51 GB, free: 10.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.2381, allocations: 29.7 kB / 0.51 GB, free: 10.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.217e-05/0.2381, allocations: 80.14 kB / 0.5101 GB, free: 10.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.2381, allocations: 8 kB / 0.5101 GB, free: 10.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.2381, allocations: 0 / 0.5101 GB, free: 10.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2383, allocations: 318.8 kB / 0.5104 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.596e-05/0.2383, allocations: 8 kB / 0.5104 GB, free: 10.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.339e-05/0.2384, allocations: 40.23 kB / 0.5105 GB, free: 10.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.644e-05/0.2384, allocations: 15.98 kB / 0.5105 GB, free: 10.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2385, allocations: 4 kB / 0.5105 GB, free: 10.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001527/0.2386, allocations: 73.72 kB / 0.5105 GB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.2387, allocations: 7.953 kB / 0.5106 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2387, allocations: 4 kB / 0.5106 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2387, allocations: 0 / 0.5106 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.2388, allocations: 8 kB / 0.5106 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.2388, allocations: 4 kB / 0.5106 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.397e-05/0.2388, allocations: 0 / 0.5106 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.2389, allocations: 8.156 kB / 0.5106 GB, free: 10.08 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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.0001169/0.239, allocations: 129.5 kB / 0.5107 GB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.2391, allocations: 65.53 kB / 0.5108 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.2392, allocations: 19.98 kB / 0.5108 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2392, allocations: 0 / 0.5108 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2392, allocations: 0 / 0.5108 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2392, allocations: 0 / 0.5108 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.2394, allocations: 161.6 kB / 0.5109 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.2394, allocations: 0 / 0.5109 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.107e-06/0.2394, allocations: 4 kB / 0.5109 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2394, allocations: 4 kB / 0.5109 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.2394, allocations: 0 / 0.5109 GB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.2395, allocations: 3.953 kB / 0.5109 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2395, allocations: 0 / 0.5109 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.2397, allocations: 89.06 kB / 0.511 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.2398, allocations: 85.09 kB / 0.5111 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.2398, allocations: 0 / 0.5111 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-05/0.2399, allocations: 4 kB / 0.5111 GB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-06/0.2399, allocations: 7.953 kB / 0.5111 GB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2399, allocations: 4 kB / 0.5111 GB, free: 9.414 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.219e-05/0.24, allocations: 91.27 kB / 0.5112 GB, free: 9.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.24, allocations: 0 / 0.5112 GB, free: 9.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002604/0.2403, allocations: 12 kB / 0.5112 GB, free: 9.312 MB / 362.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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0006191/0.2409, allocations: 0.6359 MB / 0.5118 GB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.2411, allocations: 35.92 kB / 0.5119 GB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2411, allocations: 0 / 0.5119 GB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.2411, allocations: 0 / 0.5119 GB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008415/0.2419, allocations: 0.718 MB / 0.5126 GB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.243, allocations: 1.021 MB / 0.5136 GB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.2433, allocations: 0.6848 MB / 0.5142 GB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.427e-05/0.2434, allocations: 4.172 kB / 0.5143 GB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.2435, allocations: 15.44 kB / 0.5143 GB, free: 6.047 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.2435, allocations: 0 / 0.5143 GB, free: 6.047 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.2641, allocations: 1.436 MB / 0.5157 GB, free: 4.621 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003703/0.2646, allocations: 219.1 kB / 0.5159 GB, free: 4.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/2.638, allocations: 0 / 0.5159 GB, free: 4.371 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat