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.001455/0.001455, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001317/0.001317, allocations: 144.4 kB / 25.59 MB, free: 8.914 MB / 18.57 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.9176/0.9176, allocations: 173.4 MB / 202.3 MB, free: 8.285 MB / 186.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.362e-06/1.362e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.175e-05, allocations: 2.312 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002352/0.002373, allocations: 1.465 MB / 270.7 MB, free: 8.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001935/0.002567, allocations: 44.72 kB / 270.7 MB, free: 8.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.903e-05/0.002626, allocations: 7.938 kB / 270.7 MB, free: 8.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.002653, allocations: 4.797 kB / 270.7 MB, free: 8.254 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.00271, allocations: 3.938 kB / 270.7 MB, free: 8.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.00292, allocations: 26 kB / 270.8 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.569e-05/0.003006, allocations: 43.84 kB / 270.8 MB, free: 8.184 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.996e-05/0.003086, allocations: 7.984 kB / 270.8 MB, free: 8.176 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003084/0.00617, allocations: 19.98 kB / 270.8 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.309e-05/0.006213, allocations: 23.91 kB / 270.8 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.006231, allocations: 0 / 270.8 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.568e-06/0.006241, allocations: 5.188 kB / 270.9 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.006263, allocations: 8 kB / 270.9 MB, free: 8.121 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.006288, allocations: 15.92 kB / 270.9 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.904e-05/0.006387, allocations: 36.36 kB / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.00639, allocations: 0.6875 kB / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.006391, allocations: 0 / 270.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.006396, allocations: 1.531 kB / 270.9 MB, free: 8.07 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.0006919/0.007087, allocations: 372.6 kB / 271.3 MB, free: 7.668 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.007125, allocations: 12.03 kB / 271.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.007159, allocations: 8.891 kB / 271.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.007297, allocations: 125.4 kB / 271.4 MB, free: 7.5 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 7.529e-05/0.007372, allocations: 42.25 kB / 271.5 MB, free: 7.453 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.007381, allocations: 5.469 kB / 271.5 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.007566, allocations: 122.9 kB / 271.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.007574, allocations: 2.281 kB / 271.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.007582, allocations: 8.359 kB / 271.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.007589, allocations: 4.125 kB / 271.6 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.669e-05/0.007616, allocations: 8 kB / 271.6 MB, free: 7.293 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.747e-05/0.007703, allocations: 93.25 kB / 271.7 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.007823, allocations: 68.86 kB / 271.8 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.803e-05/0.007851, allocations: 19.67 kB / 271.8 MB, free: 7.074 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.007857, allocations: 0 / 271.8 MB, free: 7.074 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.007878, allocations: 41.39 kB / 271.8 MB, free: 7.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 7.61e-07/0.007879, allocations: 0.6562 kB / 271.8 MB, free: 7.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001374/0.008016, allocations: 65.58 kB / 271.9 MB, free: 6.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.008065, allocations: 60.16 kB / 271.9 MB, free: 6.883 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.947e-05/0.008134, allocations: 161.9 kB / 272.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.008145, allocations: 26.2 kB / 272.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.095e-05/0.008186, allocations: 138.9 kB / 272.3 MB, free: 6.535 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.008197, allocations: 7.891 kB / 272.3 MB, free: 6.527 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.00823, allocations: 27.34 kB / 272.3 MB, free: 6.492 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.008348, allocations: 496.1 kB / 272.8 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-06/0.008356, allocations: 4 kB / 272.8 MB, free: 5.992 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/0.008375, allocations: 23.36 kB / 272.8 MB, free: 5.961 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.311e-05/0.008409, allocations: 31.31 kB / 272.8 MB, free: 5.922 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.00841, allocations: 0 / 272.8 MB, free: 5.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.396e-05/0.008474, allocations: 45.73 kB / 272.9 MB, free: 5.871 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.008486, allocations: 4 kB / 272.9 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.008492, allocations: 3.984 kB / 272.9 MB, free: 5.863 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.629e-06/0.008501, allocations: 4 kB / 272.9 MB, free: 5.859 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.285e-05/0.008534, allocations: 7.938 kB / 272.9 MB, free: 5.852 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-06/0.008536, allocations: 4 kB / 272.9 MB, free: 5.848 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.008551, allocations: 3.938 kB / 272.9 MB, free: 5.844 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-06/0.008554, allocations: 0 / 272.9 MB, free: 5.844 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.136e-05/0.008625, allocations: 161 kB / 273.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/0.008694, allocations: 65.64 kB / 273.1 MB, free: 5.605 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.008713, allocations: 8.156 kB / 273.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.008716, allocations: 0 / 273.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.008717, allocations: 0 / 273.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.00872, allocations: 0 / 273.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.429e-05/0.008784, allocations: 105.2 kB / 273.2 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008785, allocations: 0 / 273.2 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.008791, allocations: 4 kB / 273.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.008792, allocations: 3.938 kB / 273.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.528e-06/0.008797, allocations: 0 / 273.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.008797, allocations: 0 / 273.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.008798, allocations: 0 / 273.3 MB, free: 5.457 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.361e-05/0.008842, allocations: 68.38 kB / 273.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.097e-05/0.008853, allocations: 11.95 kB / 273.3 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.008868, allocations: 4 kB / 273.3 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.633e-05/0.008905, allocations: 4 kB / 273.3 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-06/0.008907, allocations: 3.938 kB / 273.3 MB, free: 5.344 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.008913, allocations: 0 / 273.3 MB, free: 5.344 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.003049/0.01196, allocations: 127.2 kB / 273.5 MB, free: 5.219 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01196, allocations: 0 / 273.5 MB, free: 5.219 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001868/0.01215, allocations: 12 kB / 273.5 MB, free: 5.207 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 8.737e-05/0.01224, allocations: 95.25 kB / 273.6 MB, free: 5.105 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.458e-05/0.01232, allocations: 31.61 kB / 273.6 MB, free: 5.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01232, allocations: 0 / 273.6 MB, free: 5.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.01232, allocations: 0 / 273.6 MB, free: 5.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005978/0.01292, allocations: 1.065 MB / 274.7 MB, free: 3.977 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002188/0.01314, allocations: 140.2 kB / 274.8 MB, free: 3.812 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.145e-05/0.01317, allocations: 59.34 kB / 274.9 MB, free: 3.734 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.783e-05/0.01319, allocations: 0 / 274.9 MB, free: 3.734 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.224e-05/0.01324, allocations: 74.2 kB / 274.9 MB, free: 3.66 MB / 250.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01324, allocations: 4.188 kB / 274.9 MB, free: 3.656 MB / 250.7 MB Notification: Performance of Templates: time 0.005467/0.01871, allocations: 0.8161 MB / 275.8 MB, free: 2.863 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 -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.671112813986838]