Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 106.9 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001875/0.001875, allocations: 219.4 kB / 23 MB, free: 5.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.646/1.646, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 60.03 kB / 376.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3656, allocations: 53.33 MB / 429.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003299/0.3689, allocations: 1.457 MB / 431.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003022/0.3692, allocations: 43.84 kB / 431.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.801e-05/0.3693, allocations: 4 kB / 431.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.882e-05/0.3694, allocations: 0 / 431.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.163e-05/0.3695, allocations: 7.922 kB / 431.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.3698, allocations: 27.91 kB / 431.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.37, allocations: 39.91 kB / 431.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.3701, allocations: 11.98 kB / 431.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.941e-05/0.3702, allocations: 15.94 kB / 431.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.3702, allocations: 15.92 kB / 431.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/0.3702, allocations: 8 kB / 431.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.599e-05/0.3703, allocations: 4 kB / 431.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.3703, allocations: 15.91 kB / 431.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.3704, allocations: 15.94 kB / 431.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.3705, allocations: 47.66 kB / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.3705, allocations: 0 / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3705, allocations: 0 / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3705, allocations: 3.938 kB / 431.5 MB, free: 5.816 MB / 334.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.0007336/0.3713, allocations: 344.9 kB / 431.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.086e-05/0.3713, allocations: 12.03 kB / 431.9 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.3714, allocations: 8.891 kB / 431.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.3717, allocations: 176.3 kB / 432 MB, free: 5.203 MB / 334.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.0001657/0.3719, allocations: 42.23 kB / 432.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.3719, allocations: 4.375 kB / 432.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/0.3723, allocations: 119.9 kB / 432.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3723, allocations: 7.938 kB / 432.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.3724, allocations: 0 / 432.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3724, allocations: 0 / 432.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.116e-05/0.3724, allocations: 19.94 kB / 432.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002281/0.3727, allocations: 169.5 kB / 432.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.3729, allocations: 135.8 kB / 432.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.902e-05/0.373, allocations: 16.86 kB / 432.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.373, allocations: 4 kB / 432.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.3731, allocations: 42.48 kB / 432.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.3731, allocations: 0 / 432.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002399/0.3733, allocations: 73.62 kB / 432.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.3734, allocations: 63.34 kB / 432.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3735, allocations: 105.8 kB / 432.8 MB, free: 4.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.3735, allocations: 25.7 kB / 432.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.634e-05/0.3735, allocations: 88.14 kB / 432.9 MB, free: 4.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.3736, allocations: 11.89 kB / 432.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.734e-05/0.3736, allocations: 21.7 kB / 433 MB, free: 4.121 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.3738, allocations: 310.8 kB / 433.3 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.193e-05/0.3738, allocations: 8 kB / 433.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-05/0.3739, allocations: 44.22 kB / 433.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.878e-05/0.374, allocations: 52.23 kB / 433.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.374, allocations: 0 / 433.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001157/0.3741, allocations: 70.14 kB / 433.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3741, allocations: 15.97 kB / 433.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3741, allocations: 0 / 433.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3741, allocations: 0 / 433.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.297e-05/0.3742, allocations: 15.92 kB / 433.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.3742, allocations: 4 kB / 433.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.415e-05/0.3742, allocations: 0 / 433.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3742, allocations: 4 kB / 433.5 MB, free: 3.562 MB / 334.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.0001099/0.3743, allocations: 116.7 kB / 433.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.3745, allocations: 69.56 kB / 433.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.879e-05/0.3745, allocations: 7.969 kB / 433.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3745, allocations: 4 kB / 433.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.3745, allocations: 0 / 433.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3745, allocations: 0 / 433.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.3747, allocations: 161.7 kB / 433.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3747, allocations: 0 / 433.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.3747, allocations: 0 / 433.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3747, allocations: 3.938 kB / 433.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3747, allocations: 7.984 kB / 433.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3747, allocations: 3.938 kB / 433.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3747, allocations: 4 kB / 433.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.3748, allocations: 85.17 kB / 433.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-05/0.3749, allocations: 89.08 kB / 434 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.375, allocations: 7.938 kB / 434 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.482e-05/0.375, allocations: 7.984 kB / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-06/0.375, allocations: 0 / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.375, allocations: 0 / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.3751, allocations: 87.28 kB / 434.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3751, allocations: 4 kB / 434.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001996/0.3753, allocations: 8 kB / 434.1 MB, free: 2.801 MB / 334.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.0001519/0.3754, allocations: 103.2 kB / 434.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.3756, allocations: 31.88 kB / 434.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.3756, allocations: 0 / 434.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3756, allocations: 0 / 434.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008437/0.3764, allocations: 0.7261 MB / 435 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.3768, allocations: 133.5 kB / 435.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.3773, allocations: 0.6846 MB / 435.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.468e-05/0.3774, allocations: 4 kB / 435.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.3774, allocations: 7.438 kB / 435.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3774, allocations: 0 / 435.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of Templates: time 0.00406/0.3815, allocations: 0.69 MB / 436.5 MB, free: 352 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.940088154748082]