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.001726/0.001726, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001988/0.001988, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.458/1.458, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.001514/0.001514, allocations: 51.91 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2525, allocations: 53.36 MB / 432.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002794/0.2553, allocations: 1.457 MB / 433.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002123/0.2555, allocations: 39.91 kB / 433.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.414e-05/0.2556, allocations: 3.938 kB / 433.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.529e-05/0.2556, allocations: 0 / 433.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.827e-05/0.2557, allocations: 3.938 kB / 433.9 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.2559, allocations: 34.2 kB / 433.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.2561, allocations: 39.86 kB / 434 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2562, allocations: 4 kB / 434 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.182e-05/0.2562, allocations: 23.92 kB / 434 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.563e-05/0.2563, allocations: 23.91 kB / 434 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.2563, allocations: 4 kB / 434 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.2563, allocations: 4 kB / 434 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.2563, allocations: 7.938 kB / 434 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.349e-05/0.2564, allocations: 15.92 kB / 434 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.2565, allocations: 51.55 kB / 434.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2565, allocations: 0 / 434.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2565, allocations: 0 / 434.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2565, allocations: 0 / 434.1 MB, free: 5.242 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.0004776/0.257, allocations: 272.7 kB / 434.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.257, allocations: 12.03 kB / 434.4 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.257, allocations: 8.891 kB / 434.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.2573, allocations: 118.5 kB / 434.5 MB, free: 4.789 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.0001077/0.2574, allocations: 46.19 kB / 434.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.2574, allocations: 384 / 434.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.2577, allocations: 127.9 kB / 434.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2577, allocations: 3.938 kB / 434.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2577, allocations: 0 / 434.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.2577, allocations: 0 / 434.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.727e-05/0.2578, allocations: 19.92 kB / 434.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.2579, allocations: 140.6 kB / 434.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.2581, allocations: 58.67 kB / 434.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.27e-05/0.2582, allocations: 28.84 kB / 434.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.2582, allocations: 0 / 434.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.2582, allocations: 38.5 kB / 435 MB, free: 4.254 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2582, allocations: 0 / 435 MB, free: 4.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002154/0.2584, allocations: 77.56 kB / 435 MB, free: 4.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/0.2585, allocations: 59.41 kB / 435.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.005e-05/0.2586, allocations: 105.8 kB / 435.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.2586, allocations: 25.7 kB / 435.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.2587, allocations: 92.12 kB / 435.3 MB, free: 3.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.2587, allocations: 3.953 kB / 435.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.2587, allocations: 25.7 kB / 435.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2589, allocations: 314.8 kB / 435.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.659e-05/0.2589, allocations: 4 kB / 435.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.58e-05/0.2589, allocations: 44.22 kB / 435.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.069e-05/0.259, allocations: 52.23 kB / 435.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.259, allocations: 0 / 435.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001058/0.2591, allocations: 73.61 kB / 435.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2591, allocations: 11.94 kB / 435.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2591, allocations: 0 / 435.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2592, allocations: 0 / 435.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.608e-05/0.2592, allocations: 11.92 kB / 435.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2592, allocations: 4 kB / 435.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.157e-05/0.2592, allocations: 0 / 435.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-06/0.2592, allocations: 4 kB / 435.8 MB, free: 3.273 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 9.801e-05/0.2593, allocations: 120.6 kB / 436 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2594, allocations: 77.56 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.117e-05/0.2595, allocations: 4.062 kB / 436 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2595, allocations: 0 / 436 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2595, allocations: 0 / 436 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2595, allocations: 4 kB / 436 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.2596, allocations: 132.7 kB / 436.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.2596, allocations: 0 / 436.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-06/0.2596, allocations: 7.922 kB / 436.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2596, allocations: 3.938 kB / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.2596, allocations: 0 / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2596, allocations: 8 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.2596, allocations: 0 / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.2597, allocations: 85.08 kB / 436.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.106e-05/0.2598, allocations: 4 kB / 436.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.2598, allocations: 7.938 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.372e-05/0.2598, allocations: 7.984 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-06/0.2598, allocations: 0 / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-06/0.2598, allocations: 3.938 kB / 436.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.775e-05/0.2599, allocations: 87.28 kB / 436.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2599, allocations: 4 kB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.2601, allocations: 4 kB / 436.4 MB, free: 2.645 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 0.0001158/0.2602, allocations: 103.2 kB / 436.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.2603, allocations: 35.92 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2603, allocations: 0 / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4e-07/0.2603, allocations: 0 / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.2611, allocations: 0.7207 MB / 437.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003109/0.2614, allocations: 151.3 kB / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.2617, allocations: 0.6885 MB / 438.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.2617, allocations: 7.438 kB / 438.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2617, allocations: 0 / 438.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of Templates: time 0.002314/0.264, allocations: 0.7878 MB / 438.9 MB, free: 76 kB / 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.5352898391429335]