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.0007693/0.0007693, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009692/0.001738, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006336/0.0006336, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008956/0.001529, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9127/0.9127, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08273/0.9955, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.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.603e-06/1.603e-06, allocations: 3.938 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.21e-05/1.371e-05, allocations: 6.312 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002084/0.002098, allocations: 1.516 MB / 241.1 MB, free: 1.652 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 9.281e-05/0.002191, allocations: 43.83 kB / 241.1 MB, free: 1.609 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.48e-05/0.002236, allocations: 0 / 241.1 MB, free: 1.609 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.002254, allocations: 3.938 kB / 241.1 MB, free: 1.605 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 3.011e-05/0.002284, allocations: 15.86 kB / 241.1 MB, free: 1.59 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001311/0.002415, allocations: 27.91 kB / 241.2 MB, free: 1.562 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.335e-05/0.002508, allocations: 39.86 kB / 241.2 MB, free: 1.523 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.035e-05/0.002579, allocations: 4 kB / 241.2 MB, free: 1.52 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.106e-05/0.00266, allocations: 31.95 kB / 241.2 MB, free: 1.488 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.56e-05/0.002695, allocations: 19.92 kB / 241.2 MB, free: 1.469 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.002717, allocations: 4 kB / 241.2 MB, free: 1.465 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.686e-06/0.002725, allocations: 4 kB / 241.3 MB, free: 1.461 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.002741, allocations: 4 kB / 241.3 MB, free: 1.457 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.002763, allocations: 11.94 kB / 241.3 MB, free: 1.445 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.062e-05/0.002844, allocations: 23.86 kB / 241.3 MB, free: 1.422 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/0.002857, allocations: 0 / 241.3 MB, free: 1.422 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.002858, allocations: 0 / 241.3 MB, free: 1.422 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.002872, allocations: 0 / 241.3 MB, free: 1.422 MB / 234.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.000334/0.003206, allocations: 268.5 kB / 241.6 MB, free: 1.133 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.588e-05/0.003232, allocations: 8.031 kB / 241.6 MB, free: 1.125 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.4e-05/0.003256, allocations: 4.938 kB / 241.6 MB, free: 1.121 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.003377, allocations: 121.8 kB / 241.7 MB, free: 0.9766 MB / 234.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 8.374e-05/0.003461, allocations: 34.27 kB / 241.7 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.003472, allocations: 4.375 kB / 241.7 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.003678, allocations: 124.4 kB / 241.8 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.003685, allocations: 192 / 241.8 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-06/0.003691, allocations: 4.375 kB / 241.8 MB, free: 0.793 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.003696, allocations: 4.125 kB / 241.9 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.405e-05/0.00372, allocations: 11.98 kB / 241.9 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.76e-05/0.003778, allocations: 61.05 kB / 241.9 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.586e-05/0.003873, allocations: 54.47 kB / 242 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2e-05/0.003893, allocations: 12.86 kB / 242 MB, free: 0.625 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.003899, allocations: 3.984 kB / 242 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.003916, allocations: 34.5 kB / 242 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of pre-optimization done (n=5): time 7.11e-07/0.003916, allocations: 0 / 242 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of matching and sorting (n=5): time 9.609e-05/0.004012, allocations: 61.69 kB / 242.1 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.004051, allocations: 59.41 kB / 242.1 MB, free: 452 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.743e-05/0.004099, allocations: 114.6 kB / 242.3 MB, free: 324 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.248e-06/0.004108, allocations: 25.7 kB / 242.3 MB, free: 292 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.727e-05/0.004125, allocations: 80.14 kB / 242.4 MB, free: 208 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.068e-05/0.004136, allocations: 15.92 kB / 242.4 MB, free: 192 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.00416, allocations: 21.72 kB / 242.4 MB, free: 164 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.004238, allocations: 314.8 kB / 242.7 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.019e-06/0.004243, allocations: 4.438 kB / 242.7 MB, free: 15.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.406e-05/0.004257, allocations: 21.69 kB / 242.7 MB, free: 15.81 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.125e-05/0.004279, allocations: 17.72 kB / 242.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.00428, allocations: 0 / 242.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 3.774e-05/0.004318, allocations: 49.62 kB / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.004328, allocations: 4 kB / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.004332, allocations: 4 kB / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.333e-06/0.00434, allocations: 0 / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.009e-05/0.00437, allocations: 4 kB / 242.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-06/0.004372, allocations: 0 / 242.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-06/0.004382, allocations: 0 / 242.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-06/0.004385, allocations: 12 kB / 242.8 MB, free: 15.71 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 4.972e-05/0.004435, allocations: 125.6 kB / 242.9 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.004468, allocations: 45.83 kB / 243 MB, free: 15.53 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.004494, allocations: 16.16 kB / 243 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.004495, allocations: 0 / 243 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.004496, allocations: 0 / 243 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.004498, allocations: 0 / 243 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.967e-05/0.004538, allocations: 69.83 kB / 243.1 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.004539, allocations: 0 / 243.1 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.097e-06/0.004543, allocations: 7.938 kB / 243.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-06/0.004549, allocations: 3.938 kB / 243.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.00455, allocations: 4 kB / 243.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.004555, allocations: 7.984 kB / 243.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.004556, allocations: 0 / 243.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.004558, allocations: 7.984 kB / 243.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.424e-05/0.004592, allocations: 57.02 kB / 243.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.004603, allocations: 0 / 243.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.678e-05/0.004629, allocations: 8 kB / 243.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.964e-06/0.004631, allocations: 0 / 243.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.004636, allocations: 3.984 kB / 243.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.145e-05/0.004647, allocations: 16.84 kB / 243.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004647, allocations: 4 kB / 243.2 MB, free: 15.28 MB / 250.7 MB Notification: Performance of remove unused functions: time 8.814e-05/0.004735, allocations: 8 kB / 243.2 MB, free: 15.27 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 5.453e-05/0.00479, allocations: 80.42 kB / 243.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.38e-05/0.004844, allocations: 24.78 kB / 243.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.004848, allocations: 4 kB / 243.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.71e-07/0.004848, allocations: 0 / 243.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.005165, allocations: 0.7149 MB / 244 MB, free: 14.42 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.005441, allocations: 134.2 kB / 244.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.623e-05/0.005467, allocations: 63.34 kB / 244.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.315e-05/0.00548, allocations: 4 kB / 244.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/0.00552, allocations: 55.36 kB / 244.3 MB, free: 14.12 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.005521, allocations: 0 / 244.3 MB, free: 14.12 MB / 250.7 MB Notification: Performance of Templates: time 0.001965/0.007485, allocations: 0.8179 MB / 245.1 MB, free: 13.32 MB / 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 -emit_protected -ignoreHideResult -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.3454896714538336]