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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 78.92 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 149.6 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/2.905e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002172/0.002201, allocations: 1.432 MB / 320.4 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001908/0.002392, allocations: 43.84 kB / 320.4 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.02e-05/0.002452, allocations: 1.469 kB / 320.4 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.477e-05/0.002477, allocations: 4.594 kB / 320.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.625e-05/0.002533, allocations: 2.172 kB / 320.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.002765, allocations: 28.2 kB / 320.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.002877, allocations: 42.11 kB / 320.5 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.002981, allocations: 13.45 kB / 320.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.583e-05/0.003057, allocations: 21.69 kB / 320.5 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.782e-05/0.003095, allocations: 17.61 kB / 320.5 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.003115, allocations: 7.5 kB / 320.5 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.003127, allocations: 2.844 kB / 320.5 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/0.003149, allocations: 7.969 kB / 320.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.001e-05/0.003179, allocations: 21.23 kB / 320.6 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.003287, allocations: 40.59 kB / 320.6 MB, free: 2.449 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.00329, allocations: 5.469 kB / 320.6 MB, free: 2.445 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.003291, allocations: 0 / 320.6 MB, free: 2.445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.003295, allocations: 0.75 kB / 320.6 MB, free: 2.445 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.0003847/0.00368, allocations: 275.6 kB / 320.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.003715, allocations: 8.875 kB / 320.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.032e-05/0.003755, allocations: 4.844 kB / 320.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.003926, allocations: 125 kB / 321 MB, free: 2.031 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 8.648e-05/0.004012, allocations: 43.17 kB / 321.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.004024, allocations: 3.062 kB / 321.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.004285, allocations: 121.4 kB / 321.2 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.004296, allocations: 5.281 kB / 321.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.004305, allocations: 384 / 321.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.004311, allocations: 5.125 kB / 321.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.097e-05/0.004372, allocations: 28.67 kB / 321.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.219e-05/0.004454, allocations: 97.61 kB / 321.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.004616, allocations: 55.59 kB / 321.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.75e-05/0.004663, allocations: 24.98 kB / 321.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.004676, allocations: 1.344 kB / 321.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.136e-05/0.004688, allocations: 32.23 kB / 321.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.004689, allocations: 0 / 321.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001851/0.004874, allocations: 77.98 kB / 321.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.004915, allocations: 63.69 kB / 321.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.548e-05/0.00497, allocations: 107.8 kB / 321.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.00498, allocations: 35.08 kB / 321.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.95e-05/0.004999, allocations: 82.31 kB / 321.8 MB, free: 1.336 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.11e-05/0.00501, allocations: 5.406 kB / 321.8 MB, free: 1.332 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.005035, allocations: 18.67 kB / 321.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.005073, allocations: 314.1 kB / 322.1 MB, free: 1 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.361e-05/0.005086, allocations: 7.688 kB / 322.1 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.688e-05/0.005103, allocations: 15.89 kB / 322.1 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.851e-05/0.005132, allocations: 28.64 kB / 322.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.005133, allocations: 1.219 kB / 322.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.514e-05/0.005199, allocations: 59.06 kB / 322.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.005211, allocations: 4.781 kB / 322.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.005215, allocations: 1.125 kB / 322.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.005229, allocations: 1.062 kB / 322.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.549e-05/0.005264, allocations: 4.375 kB / 322.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.005269, allocations: 5.188 kB / 322.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.005285, allocations: 5.031 kB / 322.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-06/0.005288, allocations: 1.062 kB / 322.2 MB, free: 0.8984 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.791e-05/0.005336, allocations: 114.5 kB / 322.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.815e-05/0.005424, allocations: 65.16 kB / 322.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.009e-05/0.005444, allocations: 10 kB / 322.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.005448, allocations: 5.422 kB / 322.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.005451, allocations: 0 / 322.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.005455, allocations: 8.578 kB / 322.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.465e-05/0.005499, allocations: 109.5 kB / 322.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.0055, allocations: 0 / 322.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-06/0.005507, allocations: 1.344 kB / 322.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.005509, allocations: 1.078 kB / 322.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.005518, allocations: 1.094 kB / 322.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.005519, allocations: 1.156 kB / 322.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.00552, allocations: 8.922 kB / 322.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.005631, allocations: 87.27 kB / 322.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.007e-05/0.005641, allocations: 6.906 kB / 322.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.00566, allocations: 2.156 kB / 322.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.5e-05/0.005705, allocations: 8.922 kB / 322.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-06/0.005708, allocations: 0 / 322.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.005714, allocations: 2.125 kB / 322.7 MB, free: 500 kB / 286.1 MB Notification: Performance of sorting global known variables: time 2.59e-05/0.00574, allocations: 82.67 kB / 322.7 MB, free: 424 kB / 286.1 MB Notification: Performance of sort global known variables: time 7e-08/0.00574, allocations: 0 / 322.7 MB, free: 424 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001847/0.005925, allocations: 13.5 kB / 322.8 MB, free: 416 kB / 286.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 8.159e-05/0.006007, allocations: 104.7 kB / 322.9 MB, free: 320 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.006121, allocations: 26.3 kB / 322.9 MB, free: 312 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.006122, allocations: 0 / 322.9 MB, free: 312 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.006123, allocations: 1.438 kB / 322.9 MB, free: 312 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007008/0.006824, allocations: 0.7155 MB / 323.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.007135, allocations: 133.7 kB / 323.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.223e-05/0.007197, allocations: 66.22 kB / 323.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.748e-05/0.007215, allocations: 7.5 kB / 323.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.007239, allocations: 9.531 kB / 323.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.00724, allocations: 5.062 kB / 323.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Templates: time 0.003413/0.01065, allocations: 0.7505 MB / 324.6 MB, free: 15.28 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.232022933661938]