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.0007941/0.0007941, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001142/0.001936, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007766/0.0007766, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001027/0.001804, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.147/1.147, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08961/1.236, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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 2.214e-06/2.214e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.302e-05/2.524e-05, allocations: 6.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002096/0.002121, allocations: 1.541 MB / 246.1 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00011/0.002231, allocations: 39.78 kB / 246.1 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.254e-05/0.002283, allocations: 0 / 246.1 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.252e-05/0.002306, allocations: 7.938 kB / 246.1 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.567e-05/0.002341, allocations: 3.984 kB / 246.1 MB, free: 12.71 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.00248, allocations: 35.83 kB / 246.1 MB, free: 12.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.975e-05/0.00257, allocations: 39.86 kB / 246.2 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.986e-05/0.00265, allocations: 12 kB / 246.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.002757, allocations: 27.97 kB / 246.2 MB, free: 12.6 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.055e-05/0.002798, allocations: 11.92 kB / 246.2 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.00282, allocations: 4 kB / 246.2 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.278e-06/0.00283, allocations: 4 kB / 246.2 MB, free: 12.58 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.951e-05/0.002849, allocations: 7.984 kB / 246.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.655e-05/0.002876, allocations: 11.94 kB / 246.3 MB, free: 12.56 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.002979, allocations: 23.92 kB / 246.3 MB, free: 12.54 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.199e-05/0.003011, allocations: 0 / 246.3 MB, free: 12.54 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.003014, allocations: 0 / 246.3 MB, free: 12.54 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.003036, allocations: 0 / 246.3 MB, free: 12.54 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.0004608/0.003497, allocations: 260.6 kB / 246.5 MB, free: 12.26 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.00353, allocations: 12.03 kB / 246.6 MB, free: 12.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.003562, allocations: 8.922 kB / 246.6 MB, free: 12.24 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.003718, allocations: 121.7 kB / 246.7 MB, free: 12.09 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 9.378e-05/0.003811, allocations: 38.25 kB / 246.7 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.003821, allocations: 4.375 kB / 246.7 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.004003, allocations: 116.5 kB / 246.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.004011, allocations: 192 / 246.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.004018, allocations: 4.375 kB / 246.8 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.004024, allocations: 12.06 kB / 246.9 MB, free: 11.9 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.912e-05/0.004053, allocations: 7.984 kB / 246.9 MB, free: 11.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.781e-05/0.004121, allocations: 57.05 kB / 246.9 MB, free: 11.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.004241, allocations: 58.47 kB / 247 MB, free: 11.76 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.363e-05/0.004265, allocations: 12.86 kB / 247 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.603e-06/0.004271, allocations: 0 / 247 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.004296, allocations: 34.56 kB / 247 MB, free: 11.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.004297, allocations: 0 / 247 MB, free: 11.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001297/0.004427, allocations: 69.61 kB / 247.1 MB, free: 11.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.004482, allocations: 55.41 kB / 247.1 MB, free: 11.56 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.296e-05/0.004545, allocations: 114.7 kB / 247.3 MB, free: 11.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003211/0.004867, allocations: 25.7 kB / 247.3 MB, free: 11.4 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.134e-05/0.004888, allocations: 80.14 kB / 247.4 MB, free: 11.32 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.004901, allocations: 7.953 kB / 247.4 MB, free: 11.31 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.004937, allocations: 25.7 kB / 247.4 MB, free: 11.28 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.746e-05/0.005015, allocations: 318.8 kB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-06/0.005022, allocations: 4 kB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.837e-05/0.00504, allocations: 17.75 kB / 247.7 MB, free: 10.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.263e-05/0.005073, allocations: 29.62 kB / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.005075, allocations: 0 / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.891e-05/0.005124, allocations: 45.62 kB / 247.8 MB, free: 10.85 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.005141, allocations: 10.97 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.005148, allocations: 0 / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.005157, allocations: 0 / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.905e-05/0.005196, allocations: 4 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-06/0.005198, allocations: 0 / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.087e-05/0.005209, allocations: 0 / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.005214, allocations: 12 kB / 247.8 MB, free: 10.82 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.593e-05/0.00528, allocations: 113.8 kB / 247.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.005324, allocations: 53.61 kB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.214e-05/0.005346, allocations: 8.125 kB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.005348, allocations: 0 / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.00535, allocations: 0 / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.005353, allocations: 0 / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.502e-05/0.005408, allocations: 73.77 kB / 248.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.005409, allocations: 0 / 248.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.096e-06/0.005417, allocations: 4 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.096e-05/0.005428, allocations: 7.891 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.00543, allocations: 4 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.005438, allocations: 8.438 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.005438, allocations: 0 / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.005441, allocations: 4 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.673e-05/0.005488, allocations: 57.81 kB / 248.1 MB, free: 10.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.005502, allocations: 0 / 248.1 MB, free: 10.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.685e-05/0.005539, allocations: 4 kB / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-06/0.005542, allocations: 0 / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.005549, allocations: 4 kB / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.688e-05/0.005566, allocations: 16.78 kB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005566, allocations: 8 kB / 248.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.942e-05/0.005665, allocations: 4 kB / 248.2 MB, free: 10.41 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 0.0001153/0.00578, allocations: 87.92 kB / 248.3 MB, free: 10.31 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.394e-05/0.005874, allocations: 24.84 kB / 248.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.005879, allocations: 0 / 248.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.81e-07/0.005879, allocations: 0 / 248.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.006378, allocations: 0.7109 MB / 249 MB, free: 9.551 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004561/0.006834, allocations: 134.6 kB / 249.1 MB, free: 9.395 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.099e-05/0.006875, allocations: 67.28 kB / 249.2 MB, free: 9.309 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.571e-05/0.006901, allocations: 4 kB / 249.2 MB, free: 9.305 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.006961, allocations: 51.38 kB / 249.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of SimCode: time 1.533e-06/0.006963, allocations: 0 / 249.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of Templates: time 0.002489/0.009452, allocations: 0.8181 MB / 250.1 MB, free: 8.445 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.6515319757163525]