Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001676/0.001676, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.00221/0.00221, allocations: 209.9 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.427/1.427, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 67.83 kB / 378.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2756, allocations: 53.32 MB / 432 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002803/0.2784, allocations: 1.45 MB / 433.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.2786, allocations: 43.89 kB / 433.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.7e-05/0.2787, allocations: 0 / 433.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.391e-05/0.2787, allocations: 3.938 kB / 433.5 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.255e-05/0.2788, allocations: 7.938 kB / 433.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.279, allocations: 23.97 kB / 433.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.2791, allocations: 39.91 kB / 433.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.2792, allocations: 8 kB / 433.6 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.993e-05/0.2793, allocations: 19.91 kB / 433.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.515e-05/0.2794, allocations: 23.92 kB / 433.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.2794, allocations: 4 kB / 433.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.295e-06/0.2794, allocations: 3.938 kB / 433.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.389e-05/0.2794, allocations: 11.94 kB / 433.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.2794, allocations: 23.91 kB / 433.7 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.2796, allocations: 39.62 kB / 433.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2796, allocations: 0 / 433.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2796, allocations: 4 kB / 433.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2796, allocations: 3.938 kB / 433.8 MB, free: 5.66 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.000534/0.2801, allocations: 345.6 kB / 434.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.2801, allocations: 12.03 kB / 434.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.525e-05/0.2802, allocations: 8.891 kB / 434.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.2805, allocations: 172.4 kB / 434.3 MB, free: 5.047 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.0001022/0.2806, allocations: 38.27 kB / 434.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.2806, allocations: 384 / 434.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.2809, allocations: 139.8 kB / 434.5 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2809, allocations: 3.938 kB / 434.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2809, allocations: 0 / 434.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.2809, allocations: 0 / 434.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.175e-05/0.281, allocations: 15.98 kB / 434.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.2811, allocations: 169.5 kB / 434.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.2814, allocations: 135.7 kB / 434.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.751e-05/0.2814, allocations: 28.84 kB / 434.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-06/0.2814, allocations: 0 / 434.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.2815, allocations: 34.56 kB / 434.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.2815, allocations: 0 / 434.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002293/0.2817, allocations: 77.56 kB / 434.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/0.2818, allocations: 59.41 kB / 435 MB, free: 4.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.242e-05/0.2819, allocations: 105.8 kB / 435.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.2819, allocations: 25.7 kB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.2819, allocations: 88.14 kB / 435.2 MB, free: 4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.2819, allocations: 7.938 kB / 435.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.282, allocations: 21.72 kB / 435.2 MB, free: 3.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2821, allocations: 314.8 kB / 435.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.813e-05/0.2821, allocations: 7.984 kB / 435.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-05/0.2822, allocations: 36.3 kB / 435.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.624e-05/0.2823, allocations: 52.23 kB / 435.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2823, allocations: 0 / 435.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001121/0.2824, allocations: 81.59 kB / 435.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2824, allocations: 7.938 kB / 435.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2824, allocations: 4.156 kB / 435.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2824, allocations: 0 / 435.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.254e-05/0.2824, allocations: 4 kB / 435.7 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.2825, allocations: 11.92 kB / 435.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.788e-05/0.2825, allocations: 3.938 kB / 435.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-06/0.2825, allocations: 4 kB / 435.7 MB, free: 3.402 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 9.993e-05/0.2826, allocations: 113.8 kB / 435.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.2827, allocations: 70.12 kB / 435.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.059e-05/0.2827, allocations: 3.969 kB / 435.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.2827, allocations: 3.938 kB / 435.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2827, allocations: 4.094 kB / 435.9 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2827, allocations: 11.91 kB / 435.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.2829, allocations: 165.7 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2829, allocations: 0 / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-06/0.2829, allocations: 3.938 kB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2829, allocations: 3.938 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.2829, allocations: 0 / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.2829, allocations: 0 / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2829, allocations: 4 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.283, allocations: 89.08 kB / 436.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.2831, allocations: 81.09 kB / 436.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.2831, allocations: 11.94 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.214e-05/0.2831, allocations: 0 / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-06/0.2831, allocations: 0 / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.2831, allocations: 4 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.601e-05/0.2832, allocations: 91.27 kB / 436.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2832, allocations: 0 / 436.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001899/0.2834, allocations: 8 kB / 436.4 MB, free: 2.645 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.0001371/0.2835, allocations: 103.2 kB / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.2837, allocations: 27.98 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2837, allocations: 0 / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.905e-06/0.2837, allocations: 3.938 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007769/0.2844, allocations: 0.7222 MB / 437.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003352/0.2848, allocations: 159.2 kB / 437.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.2851, allocations: 0.6807 MB / 438.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.2851, allocations: 11.44 kB / 438.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2851, allocations: 0 / 438.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of Templates: time 0.002247/0.2874, allocations: 0.7646 MB / 438.8 MB, free: 88 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.749159778933972]