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.001395/0.001395, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001241/0.001241, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 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.076/1.076, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.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 1.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.673e-05, allocations: 5.547 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002824/0.002851, allocations: 1.486 MB / 274.5 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002382/0.003089, allocations: 39.84 kB / 274.6 MB, free: 324 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.283e-05/0.003162, allocations: 3.938 kB / 274.6 MB, free: 320 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.409e-05/0.003196, allocations: 3.984 kB / 274.6 MB, free: 316 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.937e-05/0.003266, allocations: 11.88 kB / 274.6 MB, free: 304 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.003549, allocations: 23.97 kB / 274.6 MB, free: 280 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.003666, allocations: 43.84 kB / 274.7 MB, free: 236 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.003786, allocations: 15.98 kB / 274.7 MB, free: 220 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.364e-05/0.00387, allocations: 19.98 kB / 274.7 MB, free: 200 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.394e-05/0.003914, allocations: 11.97 kB / 274.7 MB, free: 188 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.003945, allocations: 4 kB / 274.7 MB, free: 184 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.333e-05/0.003959, allocations: 4 kB / 274.7 MB, free: 180 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.944e-05/0.003988, allocations: 7.938 kB / 274.7 MB, free: 172 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.004025, allocations: 11.98 kB / 274.7 MB, free: 160 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.00415, allocations: 43.77 kB / 274.8 MB, free: 116 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.004153, allocations: 0 / 274.8 MB, free: 116 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.004154, allocations: 0 / 274.8 MB, free: 116 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.004158, allocations: 0 / 274.8 MB, free: 116 kB / 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.0008099/0.004968, allocations: 372.6 kB / 275.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.005014, allocations: 8.031 kB / 275.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.163e-05/0.005076, allocations: 16.89 kB / 275.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.005267, allocations: 124.5 kB / 275.3 MB, free: 15.54 MB / 266.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.0001072/0.005374, allocations: 38.25 kB / 275.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.005388, allocations: 4.375 kB / 275.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.005724, allocations: 138.1 kB / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.005733, allocations: 4.188 kB / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.005743, allocations: 384 / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.005755, allocations: 4.125 kB / 275.5 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.227e-05/0.005807, allocations: 15.98 kB / 275.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001332/0.00594, allocations: 124.6 kB / 275.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.006125, allocations: 55.11 kB / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.867e-05/0.006173, allocations: 27.67 kB / 275.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.006182, allocations: 0 / 275.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.006209, allocations: 33.39 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.00621, allocations: 0 / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002038/0.006414, allocations: 73.62 kB / 275.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.006474, allocations: 63.58 kB / 275.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.00658, allocations: 169.9 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.006596, allocations: 25.7 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.006649, allocations: 130.9 kB / 276.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.006664, allocations: 7.953 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/0.006718, allocations: 19.38 kB / 276.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.006875, allocations: 0.4884 MB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.561e-05/0.00689, allocations: 3.984 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.231e-05/0.006922, allocations: 23.38 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.495e-05/0.006967, allocations: 31.31 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.00697, allocations: 0 / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.497e-05/0.007055, allocations: 49.69 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.007074, allocations: 10.44 kB / 276.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.00708, allocations: 0 / 276.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.007096, allocations: 0 / 276.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.416e-05/0.00714, allocations: 4 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.007149, allocations: 11.88 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.007167, allocations: 64 / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.007171, allocations: 4 kB / 276.8 MB, free: 13.83 MB / 266.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 8.812e-05/0.007259, allocations: 164.6 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.396e-05/0.007353, allocations: 61.64 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.007381, allocations: 8.109 kB / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.007383, allocations: 0 / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.007387, allocations: 0 / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.007392, allocations: 7.938 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.183e-05/0.007474, allocations: 120.6 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.007476, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-06/0.007481, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.007483, allocations: 4 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.007492, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.007494, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.007497, allocations: 4 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001265/0.007623, allocations: 104.6 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.153e-05/0.007635, allocations: 4 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.007659, allocations: 3.984 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.652e-05/0.007705, allocations: 4 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-06/0.007709, allocations: 0 / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.007718, allocations: 4 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.717e-05/0.007775, allocations: 127.2 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.007775, allocations: 4 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.007991, allocations: 7.938 kB / 277.4 MB, free: 13.14 MB / 266.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.0001064/0.008098, allocations: 107.4 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.00821, allocations: 27.67 kB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.008213, allocations: 0 / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.11e-07/0.008214, allocations: 0 / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000753/0.008966, allocations: 1.061 MB / 278.6 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.009255, allocations: 140.3 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.029e-05/0.009305, allocations: 62.61 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.984e-05/0.009325, allocations: 3.938 kB / 278.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.848e-05/0.009363, allocations: 16.44 kB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.009364, allocations: 0 / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of Templates: time 0.00246/0.01182, allocations: 0.7586 MB / 279.6 MB, free: 10.89 MB / 266.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 -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.9760408769361675]