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.001522/0.001522, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001844/0.001844, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.494/1.494, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 44.38 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08889/0.08993, allocations: 49.45 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00262/0.09259, allocations: 1.421 MB / 352.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001685/0.09278, allocations: 35.91 kB / 352.2 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.09285, allocations: 0 / 352.2 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.902e-05/0.0929, allocations: 7.875 kB / 352.2 MB, free: 2.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.796e-05/0.09295, allocations: 7.922 kB / 352.2 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.09316, allocations: 26.48 kB / 352.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.18e-05/0.09325, allocations: 47.89 kB / 352.3 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.654e-05/0.09335, allocations: 11.98 kB / 352.3 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.087e-05/0.09341, allocations: 19.92 kB / 352.3 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.925e-05/0.09346, allocations: 19.92 kB / 352.3 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.09348, allocations: 4 kB / 352.3 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.337e-05/0.0935, allocations: 7.938 kB / 352.3 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.09353, allocations: 11.92 kB / 352.4 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.436e-05/0.09358, allocations: 19.92 kB / 352.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.741e-05/0.09367, allocations: 31.89 kB / 352.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.09368, allocations: 0 / 352.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09369, allocations: 0 / 352.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.0937, allocations: 4 kB / 352.4 MB, free: 2.715 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004603/0.09416, allocations: 351.7 kB / 352.7 MB, free: 2.32 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.09421, allocations: 15.89 kB / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.047e-05/0.09425, allocations: 8.844 kB / 352.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.09442, allocations: 176.3 kB / 352.9 MB, free: 2.086 MB / 286.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.0001324/0.09456, allocations: 34.25 kB / 353 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.09458, allocations: 8.375 kB / 353 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.09485, allocations: 123.8 kB / 353.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.09486, allocations: 3.938 kB / 353.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.09488, allocations: 4 kB / 353.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.09489, allocations: 4 kB / 353.1 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.482e-05/0.09495, allocations: 15.98 kB / 353.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.09508, allocations: 161.6 kB / 353.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.09527, allocations: 147.7 kB / 353.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.002e-05/0.09533, allocations: 24.84 kB / 353.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.09535, allocations: 0 / 353.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.09537, allocations: 38.56 kB / 353.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.09538, allocations: 0 / 353.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001853/0.09557, allocations: 77.56 kB / 353.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.09562, allocations: 55.41 kB / 353.6 MB, free: 1.277 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7e-05/0.0957, allocations: 113.8 kB / 353.7 MB, free: 1.156 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.09572, allocations: 25.7 kB / 353.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.716e-05/0.09576, allocations: 88.14 kB / 353.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.09578, allocations: 3.906 kB / 353.9 MB, free: 1.031 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.195e-05/0.09581, allocations: 25.64 kB / 353.9 MB, free: 1 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.09592, allocations: 318.8 kB / 354.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.09594, allocations: 7.984 kB / 354.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.296e-05/0.09599, allocations: 44.23 kB / 354.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.846e-05/0.09605, allocations: 44.23 kB / 354.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.09605, allocations: 0 / 354.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.442e-05/0.09615, allocations: 77.56 kB / 354.4 MB, free: 484 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.09617, allocations: 7.938 kB / 354.4 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.09618, allocations: 0 / 354.4 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.0962, allocations: 7.984 kB / 354.4 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.497e-05/0.09624, allocations: 4 kB / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.09625, allocations: 0 / 354.4 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.09628, allocations: 11.84 kB / 354.4 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.09629, allocations: 4 kB / 354.4 MB, free: 448 kB / 286.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 9.462e-05/0.09639, allocations: 118 kB / 354.5 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.51e-05/0.09649, allocations: 65.62 kB / 354.6 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.09652, allocations: 3.969 kB / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09653, allocations: 0 / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.09654, allocations: 0 / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.09654, allocations: 0 / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.695e-05/0.09664, allocations: 161.8 kB / 354.7 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.09665, allocations: 4.422 kB / 354.7 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.09667, allocations: 7.984 kB / 354.7 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-06/0.09668, allocations: 7.938 kB / 354.8 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.09669, allocations: 7.938 kB / 354.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.0967, allocations: 0 / 354.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.0967, allocations: 0 / 354.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.09684, allocations: 89.03 kB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.09689, allocations: 77.11 kB / 354.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.09692, allocations: 11.92 kB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.374e-05/0.09697, allocations: 4 kB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-06/0.09698, allocations: 0 / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.09699, allocations: 11.94 kB / 355 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.5e-05/0.09704, allocations: 87.27 kB / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09705, allocations: 0 / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000189/0.09724, allocations: 4 kB / 355 MB, free: 15.68 MB / 302.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.0001045/0.09735, allocations: 107.2 kB / 355.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.09747, allocations: 35.92 kB / 355.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.09748, allocations: 320 / 355.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.21e-07/0.09749, allocations: 4 kB / 355.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.09811, allocations: 0.7219 MB / 355.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.09841, allocations: 159 kB / 356.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.09866, allocations: 0.6885 MB / 356.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.212e-05/0.09869, allocations: 11.44 kB / 356.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09869, allocations: 0 / 356.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Templates: time 0.00189/0.1006, allocations: 0.7635 MB / 357.5 MB, free: 13.11 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/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