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.001336/0.001336, allocations: 84.7 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.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.00153/0.00153, allocations: 164.4 kB / 23.95 MB, free: 4.16 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.45/1.45, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.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 2.184e-06/2.184e-06, allocations: 0 / 325.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.684e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002583/0.00261, allocations: 1.463 MB / 326.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001986/0.002809, allocations: 40.92 kB / 326.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.051e-05/0.002869, allocations: 1.656 kB / 326.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.527e-05/0.002894, allocations: 4.594 kB / 326.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.648e-05/0.002951, allocations: 3.938 kB / 326.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.003187, allocations: 28.92 kB / 326.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.003347, allocations: 45.52 kB / 326.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.808e-05/0.003445, allocations: 12.86 kB / 326.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.81e-05/0.003523, allocations: 22.27 kB / 326.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.985e-05/0.003563, allocations: 20.81 kB / 326.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.003584, allocations: 4.312 kB / 326.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.003595, allocations: 2.531 kB / 326.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.003623, allocations: 11.62 kB / 326.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.003657, allocations: 10.38 kB / 326.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.003767, allocations: 44.27 kB / 326.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.003773, allocations: 5.312 kB / 326.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.61e-07/0.003773, allocations: 0 / 326.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.003777, allocations: 0 / 326.8 MB, free: 15.42 MB / 302.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.0004755/0.004252, allocations: 272.6 kB / 327 MB, free: 15.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.004287, allocations: 9.656 kB / 327 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.004326, allocations: 7.297 kB / 327.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.004519, allocations: 117 kB / 327.2 MB, free: 15.02 MB / 302.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.0001238/0.004643, allocations: 39.7 kB / 327.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.004661, allocations: 2.531 kB / 327.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.004999, allocations: 131.3 kB / 327.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.005009, allocations: 5.344 kB / 327.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.005021, allocations: 0.9375 kB / 327.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.005029, allocations: 5.344 kB / 327.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.052e-05/0.0051, allocations: 19.55 kB / 327.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000145/0.005245, allocations: 108.6 kB / 327.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.005446, allocations: 64.09 kB / 327.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.294e-05/0.005509, allocations: 24.48 kB / 327.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.005523, allocations: 4.484 kB / 327.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.005551, allocations: 33.95 kB / 327.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.005552, allocations: 0 / 327.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002341/0.005786, allocations: 77.36 kB / 327.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.005851, allocations: 59.02 kB / 327.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.005956, allocations: 112.4 kB / 327.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.005978, allocations: 30.5 kB / 327.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.006028, allocations: 82.36 kB / 328 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.006045, allocations: 5.938 kB / 328 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.294e-05/0.006088, allocations: 18.5 kB / 328 MB, free: 14.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.006253, allocations: 314.6 kB / 328.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.705e-05/0.00627, allocations: 6.891 kB / 328.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.564e-05/0.006295, allocations: 16.23 kB / 328.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.576e-05/0.006341, allocations: 33.05 kB / 328.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006343, allocations: 0 / 328.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.162e-05/0.006424, allocations: 51.66 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.006439, allocations: 4.875 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.006444, allocations: 1.156 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.00646, allocations: 1.828 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.442e-05/0.006504, allocations: 7.281 kB / 328.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.006513, allocations: 4.641 kB / 328.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.006529, allocations: 1.156 kB / 328.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-06/0.006533, allocations: 6.156 kB / 328.4 MB, free: 13.87 MB / 302.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 9.701e-05/0.00663, allocations: 114.7 kB / 328.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.00675, allocations: 61.12 kB / 328.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.425e-05/0.006774, allocations: 9.906 kB / 328.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.006776, allocations: 0.9844 kB / 328.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.00678, allocations: 1.094 kB / 328.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.006787, allocations: 3.938 kB / 328.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.703e-05/0.006884, allocations: 108.7 kB / 328.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.006885, allocations: 0 / 328.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.207e-06/0.006894, allocations: 5.734 kB / 328.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.006896, allocations: 5.031 kB / 328.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.006906, allocations: 1.266 kB / 328.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006907, allocations: 1.062 kB / 328.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.006908, allocations: 0 / 328.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.007057, allocations: 92.88 kB / 328.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.007072, allocations: 6.984 kB / 328.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.007094, allocations: 6.438 kB / 328.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.87e-05/0.007143, allocations: 7.828 kB / 328.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-06/0.007147, allocations: 1.062 kB / 328.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.007154, allocations: 1.156 kB / 328.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.007209, allocations: 87.08 kB / 328.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.00721, allocations: 4 kB / 328.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001924/0.007402, allocations: 9.188 kB / 328.9 MB, free: 13.38 MB / 302.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.0001264/0.007528, allocations: 97.14 kB / 329 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.007638, allocations: 29.59 kB / 329.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.007641, allocations: 1.062 kB / 329.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.007642, allocations: 0 / 329.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007526/0.008394, allocations: 0.7102 MB / 329.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.008699, allocations: 139.3 kB / 329.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.177e-05/0.008761, allocations: 65.56 kB / 330 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.04e-05/0.008781, allocations: 0.8906 kB / 330 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.008819, allocations: 9.875 kB / 330 MB, free: 12.38 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.00882, allocations: 0 / 330 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Templates: time 0.003278/0.0121, allocations: 0.7459 MB / 330.7 MB, free: 12.27 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 4.2488758489489555]