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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 172.2 kB / 16.8 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.4 MB / 223 MB, free: 9.012 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.0008153/0.0008155, allocations: 90.39 kB / 271.3 MB, free: 8.242 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.08761/0.08761, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004894/0.0004895, allocations: 12 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09761, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3483/0.446, allocations: 77.44 MB / 0.5088 GB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.4463, allocations: 73.98 kB / 0.5089 GB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002157/0.4485, allocations: 0.8658 MB / 0.5097 GB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4485, allocations: 3.938 kB / 0.5097 GB, free: 13.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.4485, allocations: 3.469 kB / 0.5098 GB, free: 13.07 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002905/0.4488, allocations: 342.3 kB / 0.5101 GB, free: 12.71 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.4489, allocations: 7.719 kB / 0.5101 GB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.4489, allocations: 8.688 kB / 0.5101 GB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.4491, allocations: 176.4 kB / 0.5103 GB, free: 12.52 MB / 330.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.0001483/0.4492, allocations: 32.95 kB / 0.5103 GB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.4492, allocations: 7.281 kB / 0.5103 GB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.4495, allocations: 126.9 kB / 0.5104 GB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.4495, allocations: 7.75 kB / 0.5104 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.4496, allocations: 3.312 kB / 0.5104 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4496, allocations: 3.984 kB / 0.5104 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.442e-05/0.4496, allocations: 14.14 kB / 0.5104 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.4497, allocations: 163.9 kB / 0.5106 GB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.4499, allocations: 143.3 kB / 0.5107 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.464e-05/0.45, allocations: 23.7 kB / 0.5108 GB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.45, allocations: 0 / 0.5108 GB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.189e-05/0.45, allocations: 34.44 kB / 0.5108 GB, free: 12.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.45, allocations: 0 / 0.5108 GB, free: 12.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001809/0.4502, allocations: 81.84 kB / 0.5109 GB, free: 12.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.4502, allocations: 66.31 kB / 0.5109 GB, free: 11.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.866e-05/0.4503, allocations: 104.7 kB / 0.511 GB, free: 11.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.4503, allocations: 29.58 kB / 0.5111 GB, free: 11.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.747e-05/0.4503, allocations: 84.11 kB / 0.5111 GB, free: 11.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.4504, allocations: 6.953 kB / 0.5112 GB, free: 11.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.4504, allocations: 3.062 kB / 0.5112 GB, free: 11.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.081e-05/0.4504, allocations: 310.8 kB / 0.5115 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.539e-05/0.4505, allocations: 18.98 kB / 0.5115 GB, free: 11.42 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.556e-05/0.4505, allocations: 39.84 kB / 0.5115 GB, free: 11.37 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.345e-05/0.4505, allocations: 49.69 kB / 0.5116 GB, free: 11.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4505, allocations: 4 kB / 0.5116 GB, free: 11.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.784e-05/0.4506, allocations: 70.25 kB / 0.5116 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.4507, allocations: 8.594 kB / 0.5116 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.4507, allocations: 3.969 kB / 0.5116 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4507, allocations: 0 / 0.5116 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.131e-05/0.4507, allocations: 7.078 kB / 0.5116 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.4507, allocations: 3.844 kB / 0.5116 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.458e-05/0.4508, allocations: 2.656 kB / 0.5117 GB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.4508, allocations: 7.531 kB / 0.5117 GB, free: 11.28 MB / 330.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 5.667e-05/0.4508, allocations: 124.9 kB / 0.5118 GB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.4509, allocations: 70.09 kB / 0.5118 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.51e-05/0.451, allocations: 7.281 kB / 0.5119 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.451, allocations: 0 / 0.5119 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.451, allocations: 3.188 kB / 0.5119 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.451, allocations: 3.844 kB / 0.5119 GB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.466e-05/0.4511, allocations: 155.8 kB / 0.512 GB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4511, allocations: 0 / 0.512 GB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.161e-06/0.4511, allocations: 4 kB / 0.512 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4511, allocations: 3.938 kB / 0.512 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.4511, allocations: 6.844 kB / 0.512 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4511, allocations: 3.812 kB / 0.512 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4511, allocations: 0.875 kB / 0.512 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.945e-05/0.4512, allocations: 83.77 kB / 0.5121 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.347e-05/0.4512, allocations: 81.02 kB / 0.5122 GB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.4513, allocations: 11.47 kB / 0.5122 GB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.145e-05/0.4513, allocations: 12.55 kB / 0.5122 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-06/0.4513, allocations: 0 / 0.5122 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.4513, allocations: 0 / 0.5122 GB, free: 10.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.657e-05/0.4514, allocations: 87.06 kB / 0.5123 GB, free: 10.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4514, allocations: 3.938 kB / 0.5123 GB, free: 10.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001815/0.4516, allocations: 7.406 kB / 0.5123 GB, free: 10.65 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: 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 8.554e-05/0.4517, allocations: 94.78 kB / 0.5124 GB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.4518, allocations: 38.89 kB / 0.5124 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4518, allocations: 0 / 0.5124 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-07/0.4518, allocations: 0 / 0.5124 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.4523, allocations: 0.7229 MB / 0.5131 GB, free: 9.859 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.4525, allocations: 130.7 kB / 0.5133 GB, free: 9.734 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.4527, allocations: 0.6846 MB / 0.5139 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.221e-05/0.4527, allocations: 3.875 kB / 0.5139 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.723e-05/0.4527, allocations: 11.38 kB / 0.5139 GB, free: 9.02 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4527, allocations: 3.875 kB / 0.5139 GB, free: 9.02 MB / 330.7 MB Notification: Performance of Templates: time 0.00232/0.4551, allocations: 0.6197 MB / 0.5145 GB, free: 8.715 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches