Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001915/0.001915, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 47.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2473, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002998/0.2503, allocations: 1.454 MB / 433.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002285/0.2505, allocations: 47.83 kB / 433.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.101e-05/0.2506, allocations: 0 / 433.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.775e-05/0.2506, allocations: 3.938 kB / 433.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.826e-05/0.2506, allocations: 3.938 kB / 433.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.2509, allocations: 27.97 kB / 433.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.251, allocations: 35.92 kB / 433.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2512, allocations: 15.77 kB / 433.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.36e-05/0.2512, allocations: 15.94 kB / 433.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.528e-05/0.2513, allocations: 15.92 kB / 433.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.2513, allocations: 4 kB / 433.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.177e-05/0.2513, allocations: 4 kB / 434 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.2513, allocations: 23.91 kB / 434 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.2514, allocations: 15.88 kB / 434 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.2515, allocations: 39.81 kB / 434 MB, free: 5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2515, allocations: 0 / 434 MB, free: 5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2515, allocations: 0 / 434 MB, free: 5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2515, allocations: 4 kB / 434 MB, free: 4.996 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.0005053/0.252, allocations: 273.1 kB / 434.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.252, allocations: 8.031 kB / 434.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.135e-05/0.2521, allocations: 8.891 kB / 434.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.2523, allocations: 118.5 kB / 434.4 MB, free: 4.547 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 9.959e-05/0.2524, allocations: 42.25 kB / 434.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.2524, allocations: 8.312 kB / 434.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.2527, allocations: 119.8 kB / 434.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2528, allocations: 3.938 kB / 434.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.2528, allocations: 3.984 kB / 434.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2528, allocations: 4 kB / 434.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.01e-05/0.2528, allocations: 12 kB / 434.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.253, allocations: 113.2 kB / 434.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.2532, allocations: 62.62 kB / 434.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.954e-05/0.2532, allocations: 28.83 kB / 434.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.553e-06/0.2532, allocations: 4 kB / 434.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.2532, allocations: 30.56 kB / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.373e-06/0.2532, allocations: 0 / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002295/0.2535, allocations: 77.75 kB / 434.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.707e-05/0.2536, allocations: 63.41 kB / 435 MB, free: 3.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.368e-05/0.2536, allocations: 101.8 kB / 435.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.2537, allocations: 29.7 kB / 435.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.759e-05/0.2537, allocations: 88.14 kB / 435.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.2537, allocations: 7.938 kB / 435.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.2538, allocations: 21.72 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2539, allocations: 314.8 kB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.011e-05/0.254, allocations: 7.984 kB / 435.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.513e-05/0.254, allocations: 36.3 kB / 435.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.548e-05/0.2541, allocations: 48.23 kB / 435.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2541, allocations: 4 kB / 435.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001153/0.2542, allocations: 81.5 kB / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2542, allocations: 4 kB / 435.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2542, allocations: 0 / 435.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.2542, allocations: 7.938 kB / 435.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.697e-05/0.2543, allocations: 4 kB / 435.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.2543, allocations: 7.875 kB / 435.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.129e-05/0.2543, allocations: 11.94 kB / 435.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.2543, allocations: 4.156 kB / 435.8 MB, free: 3.062 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.0001048/0.2544, allocations: 121.1 kB / 435.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.2545, allocations: 53.69 kB / 435.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.2546, allocations: 16 kB / 435.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2546, allocations: 0 / 435.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2546, allocations: 3.984 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2546, allocations: 0 / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.587e-05/0.2547, allocations: 97.33 kB / 436 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2547, allocations: 0 / 436 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.316e-05/0.2547, allocations: 11.92 kB / 436.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2547, allocations: 8 kB / 436.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.2547, allocations: 0 / 436.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2547, allocations: 4.188 kB / 436.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2547, allocations: 0 / 436.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.2548, allocations: 93.08 kB / 436.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.186e-06/0.2548, allocations: 0 / 436.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.2549, allocations: 8 kB / 436.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.796e-05/0.2549, allocations: 7.922 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-06/0.2549, allocations: 0 / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2549, allocations: 4 kB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.277e-05/0.255, allocations: 83.28 kB / 436.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.255, allocations: 4 kB / 436.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.2552, allocations: 8 kB / 436.3 MB, free: 2.484 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.0001177/0.2553, allocations: 103.2 kB / 436.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.2554, allocations: 31.92 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2554, allocations: 0 / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.2554, allocations: 0 / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008053/0.2562, allocations: 0.718 MB / 437.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000346/0.2566, allocations: 159.7 kB / 437.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.04e-05/0.2567, allocations: 67.33 kB / 437.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.2567, allocations: 15.38 kB / 437.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2567, allocations: 0 / 437.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of Templates: time 0.002446/0.2591, allocations: 0.772 MB / 438.1 MB, free: 0.5469 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.715484019834548]