Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 112.3 kB / 17.06 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.001532/0.001532, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.553/1.553, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 43.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4962/0.4973, allocations: 49.42 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003219/0.5006, allocations: 1.439 MB / 402.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002781/0.5009, allocations: 31.91 kB / 402.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.304e-05/0.501, allocations: 0 / 402.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.021e-05/0.501, allocations: 7.875 kB / 402.2 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.19e-05/0.5011, allocations: 3.938 kB / 402.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.5014, allocations: 31.97 kB / 402.2 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.5016, allocations: 39.91 kB / 402.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.5017, allocations: 4 kB / 402.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.482e-05/0.5018, allocations: 31.84 kB / 402.3 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.372e-05/0.5019, allocations: 19.92 kB / 402.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.5019, allocations: 4 kB / 402.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.486e-05/0.5019, allocations: 4 kB / 402.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.5019, allocations: 8 kB / 402.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.502, allocations: 23.84 kB / 402.4 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.5021, allocations: 31.89 kB / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.5022, allocations: 0 / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5022, allocations: 0 / 402.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.5022, allocations: 0 / 402.4 MB, free: 7.18 MB / 318.1 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.0006339/0.5028, allocations: 362.6 kB / 402.7 MB, free: 6.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.5029, allocations: 11.89 kB / 402.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.581e-05/0.5029, allocations: 4.938 kB / 402.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.5033, allocations: 188.2 kB / 402.9 MB, free: 6.543 MB / 318.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.5034, allocations: 38.25 kB / 403 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.5034, allocations: 4.375 kB / 403 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.5038, allocations: 127.8 kB / 403.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.5038, allocations: 7.922 kB / 403.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.5038, allocations: 4 kB / 403.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.5038, allocations: 0 / 403.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.936e-05/0.5039, allocations: 19.92 kB / 403.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002232/0.5041, allocations: 157.7 kB / 403.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.5044, allocations: 139.8 kB / 403.4 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.383e-05/0.5045, allocations: 28.84 kB / 403.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.5045, allocations: 0 / 403.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.5046, allocations: 34.56 kB / 403.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.5046, allocations: 0 / 403.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002839/0.5049, allocations: 81.52 kB / 403.6 MB, free: 5.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.533e-05/0.505, allocations: 63.39 kB / 403.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.5051, allocations: 101.9 kB / 403.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.5051, allocations: 29.7 kB / 403.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.5052, allocations: 92.06 kB / 403.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.5052, allocations: 3.953 kB / 403.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.5053, allocations: 21.72 kB / 403.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5054, allocations: 318.8 kB / 404.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.162e-05/0.5055, allocations: 7.938 kB / 404.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.884e-05/0.5055, allocations: 40.3 kB / 404.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.095e-05/0.5056, allocations: 52.22 kB / 404.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5056, allocations: 3.938 kB / 404.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001097/0.5057, allocations: 69.62 kB / 404.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.5058, allocations: 7.938 kB / 404.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5058, allocations: 4 kB / 404.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.5058, allocations: 0 / 404.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.322e-05/0.5059, allocations: 7.938 kB / 404.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.5059, allocations: 4 kB / 404.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.49e-05/0.5059, allocations: 0 / 404.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.5059, allocations: 4 kB / 404.4 MB, free: 4.902 MB / 318.1 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.5061, allocations: 125.9 kB / 404.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.5062, allocations: 69.59 kB / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.5062, allocations: 7.953 kB / 404.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.5062, allocations: 0 / 404.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.5062, allocations: 3.938 kB / 404.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5062, allocations: 0 / 404.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.5064, allocations: 165.7 kB / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5064, allocations: 0 / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.161e-06/0.5064, allocations: 0 / 404.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5064, allocations: 3.938 kB / 404.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.5064, allocations: 4 kB / 404.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5064, allocations: 0 / 404.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.5064, allocations: 4 kB / 404.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.5066, allocations: 85.11 kB / 404.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.5066, allocations: 85 kB / 404.9 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.5067, allocations: 11.94 kB / 404.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.307e-05/0.5067, allocations: 0 / 404.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-06/0.5067, allocations: 0 / 404.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.5068, allocations: 4 kB / 404.9 MB, free: 4.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.891e-05/0.5068, allocations: 91.27 kB / 405 MB, free: 4.152 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5068, allocations: 0 / 405 MB, free: 4.152 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.507, allocations: 8 kB / 405 MB, free: 4.145 MB / 318.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001284/0.5072, allocations: 111.2 kB / 405.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001324/0.5073, allocations: 35.92 kB / 405.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5073, allocations: 0 / 405.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.5073, allocations: 320 / 405.2 MB, free: 3.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.508, allocations: 0.7299 MB / 405.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003065/0.5083, allocations: 125.5 kB / 406 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.5087, allocations: 0.6844 MB / 406.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.967e-05/0.5087, allocations: 4 kB / 406.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.5087, allocations: 7.438 kB / 406.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.5088, allocations: 4.062 kB / 406.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of Templates: time 0.002951/0.5117, allocations: 0.6783 MB / 407.4 MB, free: 1.688 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches