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.0009352/0.0009352, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001276/0.001276, allocations: 140.3 kB / 24.89 MB, free: 9.203 MB / 18.57 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 0.9986/0.9986, allocations: 173.3 MB / 201.5 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] 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.563e-06/1.563e-06, allocations: 0 / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.325e-05/2.482e-05, allocations: 6.25 kB / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.005456/0.005481, allocations: 1.522 MB / 270 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001916/0.005673, allocations: 43.77 kB / 270.1 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.513e-05/0.005728, allocations: 0 / 270.1 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.479e-05/0.005753, allocations: 3.938 kB / 270.1 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.656e-05/0.005809, allocations: 7.984 kB / 270.1 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.006014, allocations: 35.91 kB / 270.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.073e-05/0.006105, allocations: 35.92 kB / 270.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.617e-05/0.006181, allocations: 7.984 kB / 270.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.604e-05/0.006257, allocations: 31.84 kB / 270.2 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.216e-05/0.006289, allocations: 11.98 kB / 270.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.006307, allocations: 4 kB / 270.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.836e-06/0.006316, allocations: 4 kB / 270.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.063e-05/0.006337, allocations: 7.922 kB / 270.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.006358, allocations: 11.98 kB / 270.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.747e-05/0.006446, allocations: 39.84 kB / 270.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.006448, allocations: 0 / 270.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.006449, allocations: 0 / 270.3 MB, free: 4.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.006453, allocations: 0 / 270.3 MB, free: 4.391 MB / 250.7 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.0002985/0.006751, allocations: 249 kB / 270.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.006782, allocations: 8.031 kB / 270.5 MB, free: 4.113 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.006813, allocations: 8.938 kB / 270.5 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.006949, allocations: 125.7 kB / 270.7 MB, free: 3.957 MB / 250.7 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 7.126e-05/0.00702, allocations: 42.19 kB / 270.7 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.007029, allocations: 4.375 kB / 270.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003203/0.01023, allocations: 120.5 kB / 270.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.01024, allocations: 192 / 270.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.01025, allocations: 384 / 270.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.01025, allocations: 4.125 kB / 270.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.81e-05/0.01028, allocations: 11.94 kB / 270.8 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.797e-05/0.01036, allocations: 65.03 kB / 270.9 MB, free: 3.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.01047, allocations: 46.55 kB / 270.9 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.396e-05/0.0105, allocations: 20.78 kB / 271 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.52e-06/0.0105, allocations: 4 kB / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.01052, allocations: 30.56 kB / 271 MB, free: 3.559 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.021e-06/0.01052, allocations: 0 / 271 MB, free: 3.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001152/0.01064, allocations: 65.61 kB / 271.1 MB, free: 3.488 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.01068, allocations: 59.41 kB / 271.1 MB, free: 3.418 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.797e-05/0.01074, allocations: 110.7 kB / 271.2 MB, free: 3.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.01075, allocations: 25.7 kB / 271.3 MB, free: 3.266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.149e-05/0.01077, allocations: 80.14 kB / 271.3 MB, free: 3.184 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.01078, allocations: 11.94 kB / 271.3 MB, free: 3.172 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.01081, allocations: 17.72 kB / 271.4 MB, free: 3.148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.01089, allocations: 322.8 kB / 271.7 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-06/0.0109, allocations: 4 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.356e-05/0.01092, allocations: 22.17 kB / 271.7 MB, free: 2.793 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.751e-05/0.01095, allocations: 17.66 kB / 271.7 MB, free: 2.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.01096, allocations: 3.984 kB / 271.7 MB, free: 2.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.852e-05/0.01101, allocations: 41.7 kB / 271.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.01103, allocations: 4 kB / 271.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.01103, allocations: 11.92 kB / 271.8 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.01105, allocations: 4.062 kB / 271.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-05/0.01108, allocations: 4 kB / 271.8 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-06/0.01108, allocations: 0 / 271.8 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.01109, allocations: 0 / 271.8 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.0111, allocations: 7.938 kB / 271.8 MB, free: 2.688 MB / 250.7 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 6.025e-05/0.01116, allocations: 109.8 kB / 271.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.01144, allocations: 45.69 kB / 272 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.083e-05/0.01147, allocations: 16.11 kB / 272 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.01147, allocations: 0 / 272 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.01147, allocations: 0 / 272 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.01147, allocations: 0 / 272 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.372e-05/0.01153, allocations: 73.78 kB / 272 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.01153, allocations: 3.938 kB / 272 MB, free: 2.406 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.553e-06/0.01153, allocations: 3.984 kB / 272 MB, free: 2.402 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.01153, allocations: 4 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.01154, allocations: 4 kB / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.01154, allocations: 0 / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.01154, allocations: 0 / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.919e-05/0.01158, allocations: 53.08 kB / 272.1 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.647e-06/0.01159, allocations: 4 kB / 272.1 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.01161, allocations: 3.984 kB / 272.1 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.593e-05/0.01164, allocations: 12 kB / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.394e-06/0.01164, allocations: 0 / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.01165, allocations: 0 / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.545e-05/0.01166, allocations: 16.84 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01166, allocations: 0 / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001412/0.01181, allocations: 8 kB / 272.1 MB, free: 2.277 MB / 250.7 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.707e-05/0.01189, allocations: 88.34 kB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.776e-05/0.01196, allocations: 16.86 kB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.01196, allocations: 0 / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.01196, allocations: 8.125 kB / 272.3 MB, free: 2.156 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.01237, allocations: 0.7151 MB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002097/0.01258, allocations: 130.5 kB / 273.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.122e-05/0.01262, allocations: 59.34 kB / 273.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.825e-05/0.01263, allocations: 0 / 273.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.01268, allocations: 59.36 kB / 273.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01268, allocations: 0 / 273.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of Templates: time 0.006543/0.01922, allocations: 0.7959 MB / 274 MB, free: 352 kB / 250.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4923801640979946]