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.001252/0.001252, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.001432/0.001432, allocations: 215.5 kB / 24.48 MB, free: 3.957 MB / 14.72 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.441/1.441, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001517/0.001517, allocations: 43.94 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2314, allocations: 53.36 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002808/0.2342, allocations: 1.454 MB / 433.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001991/0.2344, allocations: 39.91 kB / 433.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.472e-05/0.2344, allocations: 3.938 kB / 433.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.273e-05/0.2344, allocations: 0 / 433.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-05/0.2345, allocations: 7.938 kB / 433.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2347, allocations: 35.89 kB / 433.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.428e-05/0.2348, allocations: 39.86 kB / 433.9 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.751e-05/0.2349, allocations: 11.78 kB / 433.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.43e-05/0.235, allocations: 19.92 kB / 433.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.074e-05/0.235, allocations: 19.92 kB / 434 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.2351, allocations: 8 kB / 434 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.058e-05/0.2351, allocations: 4 kB / 434 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.2351, allocations: 7.984 kB / 434 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.669e-05/0.2351, allocations: 19.86 kB / 434 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.822e-05/0.2352, allocations: 35.89 kB / 434 MB, free: 4.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2352, allocations: 0 / 434 MB, free: 4.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2352, allocations: 0 / 434 MB, free: 4.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.2352, allocations: 0 / 434 MB, free: 4.973 MB / 334.1 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.0004453/0.2357, allocations: 269.2 kB / 434.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2357, allocations: 12.03 kB / 434.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.2357, allocations: 8.891 kB / 434.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.2359, allocations: 122.5 kB / 434.4 MB, free: 4.52 MB / 334.1 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.0001017/0.236, allocations: 46.12 kB / 434.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.2361, allocations: 4.375 kB / 434.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.2364, allocations: 123.9 kB / 434.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2364, allocations: 3.938 kB / 434.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.2364, allocations: 0 / 434.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.2364, allocations: 0 / 434.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.256e-05/0.2365, allocations: 23.92 kB / 434.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001314/0.2366, allocations: 113.2 kB / 434.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.2368, allocations: 54.69 kB / 434.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.28e-05/0.2368, allocations: 20.86 kB / 434.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.2368, allocations: 0 / 434.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2369, allocations: 38.55 kB / 434.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 2.915e-06/0.2369, allocations: 3.984 kB / 434.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002156/0.2371, allocations: 77.56 kB / 434.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.2372, allocations: 59.41 kB / 435 MB, free: 3.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.597e-05/0.2372, allocations: 110 kB / 435.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.2373, allocations: 29.7 kB / 435.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/0.2373, allocations: 84.14 kB / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.2373, allocations: 7.953 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.2374, allocations: 21.7 kB / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2375, allocations: 314.8 kB / 435.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.547e-05/0.2375, allocations: 8 kB / 435.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.326e-05/0.2376, allocations: 44.22 kB / 435.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.602e-05/0.2376, allocations: 56.17 kB / 435.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2376, allocations: 0 / 435.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001167/0.2378, allocations: 69.58 kB / 435.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2378, allocations: 4 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2378, allocations: 4 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2378, allocations: 3.938 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.474e-05/0.2378, allocations: 11.92 kB / 435.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.2378, allocations: 4.156 kB / 435.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.2379, allocations: 7.938 kB / 435.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.2379, allocations: 4 kB / 435.8 MB, free: 3.035 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.474e-05/0.238, allocations: 116.5 kB / 435.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.2381, allocations: 65.62 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.273e-05/0.2381, allocations: 8 kB / 435.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2381, allocations: 0 / 435.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.2381, allocations: 0 / 435.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2381, allocations: 0 / 435.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.883e-05/0.2382, allocations: 109.3 kB / 436 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2382, allocations: 0 / 436 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-06/0.2382, allocations: 4 kB / 436.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.2382, allocations: 0 / 436.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.2382, allocations: 4 kB / 436.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2382, allocations: 3.938 kB / 436.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2382, allocations: 0 / 436.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.2384, allocations: 97.31 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.051e-05/0.2384, allocations: 4 kB / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.2384, allocations: 0 / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.63e-05/0.2384, allocations: 11.94 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-06/0.2384, allocations: 3.938 kB / 436.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.2384, allocations: 3.984 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.754e-05/0.2385, allocations: 87.28 kB / 436.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2385, allocations: 0 / 436.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000199/0.2387, allocations: 8 kB / 436.3 MB, free: 2.453 MB / 334.1 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 9.781e-05/0.2388, allocations: 95.25 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.2389, allocations: 35.92 kB / 436.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2389, allocations: 0 / 436.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.2389, allocations: 0 / 436.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007189/0.2396, allocations: 0.7299 MB / 437.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.2399, allocations: 151.3 kB / 437.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.572e-05/0.24, allocations: 71.28 kB / 437.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/0.24, allocations: 7.438 kB / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.24, allocations: 0 / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of Templates: time 0.002206/0.2422, allocations: 0.7812 MB / 438.1 MB, free: 0.5117 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.783163229003549]