Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0007507/0.0007507, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001021/0.001772, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0008049/0.0008049, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01084/0.01164, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.01/1.01, allocations: 177.5 MB / 190 MB, free: 4.773 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08676/1.097, allocations: 53.88 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.882e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003176/0.003205, allocations: 1.533 MB / 246.7 MB, free: 12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001597/0.003365, allocations: 43.83 kB / 246.8 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.186e-05/0.003437, allocations: 3.938 kB / 246.8 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.035e-05/0.003467, allocations: 0 / 246.8 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.003526, allocations: 15.92 kB / 246.8 MB, free: 11.94 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.003719, allocations: 27.91 kB / 246.8 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.003826, allocations: 35.86 kB / 246.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.351e-05/0.003919, allocations: 11.98 kB / 246.9 MB, free: 11.87 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.004036, allocations: 23.92 kB / 246.9 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.292e-05/0.004078, allocations: 19.97 kB / 246.9 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.00411, allocations: 4 kB / 246.9 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.276e-05/0.004123, allocations: 8 kB / 246.9 MB, free: 11.81 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.004156, allocations: 7.938 kB / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.463e-05/0.00418, allocations: 8 kB / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.004304, allocations: 27.84 kB / 247 MB, free: 11.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.65e-05/0.004321, allocations: 0 / 247 MB, free: 11.77 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.004323, allocations: 0 / 247 MB, free: 11.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.004336, allocations: 0 / 247 MB, free: 11.77 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.0004665/0.004803, allocations: 256.6 kB / 247.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.004844, allocations: 8.031 kB / 247.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.611e-05/0.00489, allocations: 8.938 kB / 247.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.005094, allocations: 125.7 kB / 247.4 MB, free: 11.33 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 0.0001071/0.005201, allocations: 38.25 kB / 247.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.005217, allocations: 4.375 kB / 247.4 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.00546, allocations: 128.5 kB / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.00547, allocations: 192 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.005478, allocations: 384 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.005489, allocations: 8.125 kB / 247.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.401e-05/0.005523, allocations: 4 kB / 247.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.285e-05/0.005615, allocations: 65.03 kB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.005766, allocations: 62.47 kB / 247.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.186e-05/0.005798, allocations: 16.84 kB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-06/0.005804, allocations: 0 / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.005829, allocations: 30.56 kB / 247.7 MB, free: 10.92 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.332e-06/0.005831, allocations: 0 / 247.7 MB, free: 10.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.000138/0.005969, allocations: 61.67 kB / 247.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.006023, allocations: 63.34 kB / 247.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.054e-05/0.006094, allocations: 114.7 kB / 247.9 MB, free: 10.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.006109, allocations: 25.7 kB / 248 MB, free: 10.62 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.402e-05/0.006133, allocations: 84.14 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.006149, allocations: 7.953 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.26e-05/0.006182, allocations: 21.7 kB / 248.1 MB, free: 10.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.006275, allocations: 318.8 kB / 248.4 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-06/0.006284, allocations: 4 kB / 248.4 MB, free: 10.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.933e-05/0.006303, allocations: 13.72 kB / 248.4 MB, free: 10.16 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.00634, allocations: 17.7 kB / 248.4 MB, free: 10.14 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.006342, allocations: 0 / 248.4 MB, free: 10.14 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.65e-05/0.006409, allocations: 49.62 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.006422, allocations: 4 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.006427, allocations: 4 kB / 248.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.006443, allocations: 3.938 kB / 248.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.51e-05/0.006488, allocations: 7.984 kB / 248.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.006493, allocations: 3.938 kB / 248.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.006511, allocations: 0 / 248.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.006517, allocations: 7.938 kB / 248.5 MB, free: 10.05 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 7.826e-05/0.006595, allocations: 109.8 kB / 248.6 MB, free: 9.934 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.668e-05/0.006662, allocations: 49.69 kB / 248.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.495e-05/0.006687, allocations: 16.17 kB / 248.7 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.006689, allocations: 0 / 248.7 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.006691, allocations: 0 / 248.7 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.006694, allocations: 0 / 248.7 MB, free: 9.867 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.298e-05/0.006757, allocations: 70.28 kB / 248.7 MB, free: 9.781 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.006758, allocations: 0 / 248.7 MB, free: 9.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.029e-05/0.006768, allocations: 8 kB / 248.8 MB, free: 9.773 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.184e-05/0.00678, allocations: 11.88 kB / 248.8 MB, free: 9.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.006782, allocations: 0 / 248.8 MB, free: 9.762 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.00679, allocations: 4 kB / 248.8 MB, free: 9.758 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.006794, allocations: 7.938 kB / 248.8 MB, free: 9.75 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.006795, allocations: 4 kB / 248.8 MB, free: 9.746 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.083e-05/0.006846, allocations: 53.8 kB / 248.8 MB, free: 9.676 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.006863, allocations: 3.984 kB / 248.8 MB, free: 9.672 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.006905, allocations: 4 kB / 248.8 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-06/0.006909, allocations: 0 / 248.8 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.006916, allocations: 4 kB / 248.8 MB, free: 9.664 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.698e-05/0.006933, allocations: 8.859 kB / 248.9 MB, free: 9.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006933, allocations: 0 / 248.9 MB, free: 9.652 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001429/0.007076, allocations: 8 kB / 248.9 MB, free: 9.645 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.000119/0.007195, allocations: 92.34 kB / 249 MB, free: 9.543 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.739e-05/0.007292, allocations: 28.72 kB / 249 MB, free: 9.512 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.007297, allocations: 4 kB / 249 MB, free: 9.508 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.007298, allocations: 0 / 249 MB, free: 9.508 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.007877, allocations: 0.7877 MB / 249.8 MB, free: 8.676 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.008369, allocations: 130.4 kB / 249.9 MB, free: 8.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.881e-05/0.008408, allocations: 63.34 kB / 250 MB, free: 8.441 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.168e-05/0.008429, allocations: 0 / 250 MB, free: 8.441 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.008495, allocations: 59.62 kB / 250 MB, free: 8.383 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.008496, allocations: 0 / 250 MB, free: 8.383 MB / 250.7 MB Notification: Performance of Templates: time 0.002956/0.01145, allocations: 0.8208 MB / 250.8 MB, free: 7.574 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.393850770778954]