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.001365/0.001365, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001637/0.001637, allocations: 168.7 kB / 24.91 MB, free: 9.195 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.003/1.003, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.423e-06/1.423e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.435e-05, allocations: 2.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002736/0.00276, allocations: 1.493 MB / 274.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000223/0.002983, allocations: 43.78 kB / 275 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.961e-05/0.003043, allocations: 0 / 275 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.878e-05/0.003071, allocations: 7.938 kB / 275 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.407e-05/0.003136, allocations: 15.86 kB / 275 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.003358, allocations: 23.97 kB / 275 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.467e-05/0.003453, allocations: 39.91 kB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.739e-05/0.00353, allocations: 8 kB / 275.1 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.984e-05/0.00361, allocations: 19.92 kB / 275.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.69e-05/0.003647, allocations: 15.97 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.003671, allocations: 4 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.074e-05/0.003681, allocations: 4 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.003706, allocations: 15.92 kB / 275.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.00373, allocations: 11.98 kB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.438e-05/0.003824, allocations: 39.78 kB / 275.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.003826, allocations: 0 / 275.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.003827, allocations: 0 / 275.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.003831, allocations: 0 / 275.2 MB, free: 15.58 MB / 266.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.0003332/0.004164, allocations: 245 kB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.004199, allocations: 8.031 kB / 275.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.004233, allocations: 16.92 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.004377, allocations: 121.7 kB / 275.6 MB, free: 15.14 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 7.347e-05/0.004451, allocations: 34.25 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.004464, allocations: 8.375 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.004668, allocations: 132.4 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.004675, allocations: 192 / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.004683, allocations: 4.375 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.00469, allocations: 8.125 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.262e-05/0.004723, allocations: 11.98 kB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.439e-05/0.004797, allocations: 57.05 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.004932, allocations: 54.47 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.05e-05/0.004963, allocations: 20.86 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.004968, allocations: 0 / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.004992, allocations: 34.56 kB / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.004993, allocations: 0 / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.000131/0.005124, allocations: 53.67 kB / 276 MB, free: 14.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.00518, allocations: 59.41 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.141e-05/0.005252, allocations: 110.7 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.005266, allocations: 33.64 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.547e-05/0.005292, allocations: 80.14 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.005304, allocations: 7.953 kB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.005336, allocations: 25.69 kB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.005435, allocations: 314.8 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-06/0.005443, allocations: 4 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.975e-05/0.005462, allocations: 17.7 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.919e-05/0.005492, allocations: 17.7 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.005494, allocations: 0 / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.415e-05/0.005558, allocations: 49.62 kB / 276.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.005572, allocations: 8 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.005576, allocations: 64 / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.005589, allocations: 4 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.45e-05/0.005624, allocations: 4 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.005627, allocations: 0 / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.005644, allocations: 3.938 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.005654, allocations: 7.938 kB / 276.7 MB, free: 13.87 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 6.491e-05/0.005719, allocations: 109.8 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.066e-05/0.00579, allocations: 54.11 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.079e-05/0.005811, allocations: 8.125 kB / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.005813, allocations: 0 / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.005815, allocations: 0 / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.005819, allocations: 8 kB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.829e-05/0.005887, allocations: 73.83 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.005889, allocations: 0 / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.005894, allocations: 0 / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.005896, allocations: 4 kB / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.005902, allocations: 0 / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.005904, allocations: 0 / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.005905, allocations: 0 / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.546e-05/0.00595, allocations: 61.19 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.214e-05/0.005962, allocations: 11.94 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.005979, allocations: 4 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.874e-05/0.006018, allocations: 8 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-06/0.006021, allocations: 0 / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.006026, allocations: 0 / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.685e-05/0.006043, allocations: 16.83 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006043, allocations: 0 / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001649/0.006208, allocations: 12 kB / 277.1 MB, free: 13.45 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 8.955e-05/0.006297, allocations: 76.42 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.6e-05/0.006373, allocations: 24.78 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.006376, allocations: 0 / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.924e-06/0.006378, allocations: 8.125 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.006853, allocations: 0.7043 MB / 277.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002486/0.007101, allocations: 130.5 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.391e-05/0.007135, allocations: 55.36 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.115e-05/0.007156, allocations: 3.984 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.54e-05/0.007212, allocations: 55.38 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.007212, allocations: 0 / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Templates: time 0.002676/0.009889, allocations: 0.8056 MB / 278.9 MB, free: 11.53 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.7080217977054417]