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.001331/0.001331, allocations: 107 kB / 21.18 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.001458/0.001458, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.432/1.432, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001587/0.001587, allocations: 48.05 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2489, allocations: 53.36 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002915/0.2518, allocations: 1.461 MB / 433.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002223/0.252, allocations: 39.91 kB / 433.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-05/0.2521, allocations: 3.938 kB / 433.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.056e-05/0.2522, allocations: 4 kB / 433.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.507e-05/0.2522, allocations: 3.938 kB / 433.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.2525, allocations: 27.97 kB / 433.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2526, allocations: 43.84 kB / 433.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.2527, allocations: 11.8 kB / 433.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.227e-05/0.2528, allocations: 19.91 kB / 433.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.458e-05/0.2528, allocations: 19.92 kB / 434 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.2529, allocations: 4 kB / 434 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.018e-05/0.2529, allocations: 0 / 434 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.2529, allocations: 11.94 kB / 434 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.2529, allocations: 11.94 kB / 434 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.2531, allocations: 43.86 kB / 434 MB, free: 4.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2531, allocations: 4 kB / 434 MB, free: 4.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2531, allocations: 0 / 434 MB, free: 4.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2531, allocations: 0 / 434 MB, free: 4.988 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.0005271/0.2536, allocations: 269.2 kB / 434.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2536, allocations: 8.031 kB / 434.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.2537, allocations: 12.89 kB / 434.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.2539, allocations: 122.4 kB / 434.4 MB, free: 4.535 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.0001097/0.254, allocations: 38.25 kB / 434.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.254, allocations: 4.375 kB / 434.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.2544, allocations: 131.8 kB / 434.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2544, allocations: 3.938 kB / 434.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.2544, allocations: 4 kB / 434.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2544, allocations: 3.984 kB / 434.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.98e-05/0.2545, allocations: 15.94 kB / 434.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.2546, allocations: 113.2 kB / 434.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.2547, allocations: 54.69 kB / 434.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.416e-05/0.2548, allocations: 32.84 kB / 434.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.36e-06/0.2548, allocations: 0 / 434.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.2548, allocations: 30.56 kB / 434.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.2548, allocations: 0 / 434.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002076/0.255, allocations: 77.56 kB / 434.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.2551, allocations: 59.59 kB / 435 MB, free: 3.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.077e-05/0.2552, allocations: 113.8 kB / 435.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2552, allocations: 29.7 kB / 435.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.2553, allocations: 80.14 kB / 435.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.2553, allocations: 11.94 kB / 435.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.2553, allocations: 17.72 kB / 435.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2554, allocations: 322.8 kB / 435.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.74e-05/0.2555, allocations: 8 kB / 435.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-05/0.2555, allocations: 40.23 kB / 435.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.428e-05/0.2556, allocations: 48.22 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2556, allocations: 0 / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001025/0.2557, allocations: 77.58 kB / 435.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2557, allocations: 4 kB / 435.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.2557, allocations: 3.938 kB / 435.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.2557, allocations: 7.938 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.286e-05/0.2557, allocations: 7.938 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2557, allocations: 0 / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.465e-05/0.2558, allocations: 8 kB / 435.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.2558, allocations: 4 kB / 435.8 MB, free: 3.051 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.511e-05/0.2559, allocations: 114 kB / 435.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.256, allocations: 65.62 kB / 435.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.256, allocations: 15.98 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.256, allocations: 0 / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.256, allocations: 0 / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.256, allocations: 0 / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.017e-05/0.2561, allocations: 105.3 kB / 436 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.2561, allocations: 0 / 436 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.022e-06/0.2561, allocations: 4 kB / 436.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.2561, allocations: 0 / 436.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.2561, allocations: 0 / 436.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.2561, allocations: 3.938 kB / 436.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2561, allocations: 4.25 kB / 436.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.2562, allocations: 93.08 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-06/0.2563, allocations: 0 / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.2563, allocations: 11.98 kB / 436.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.2563, allocations: 7.875 kB / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-06/0.2563, allocations: 4 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.2563, allocations: 0 / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.338e-05/0.2564, allocations: 87.27 kB / 436.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2564, allocations: 0 / 436.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001956/0.2566, allocations: 8 kB / 436.3 MB, free: 2.469 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.0001194/0.2567, allocations: 107.2 kB / 436.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.2568, allocations: 31.92 kB / 436.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2568, allocations: 0 / 436.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.8e-07/0.2568, allocations: 0 / 436.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.2576, allocations: 0.7298 MB / 437.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003325/0.2579, allocations: 125.6 kB / 437.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.795e-05/0.258, allocations: 67.7 kB / 437.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.287e-05/0.258, allocations: 8 kB / 437.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.777e-05/0.258, allocations: 7.438 kB / 437.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.258, allocations: 0 / 437.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Templates: time 0.003267/0.2613, allocations: 0.7994 MB / 438.1 MB, free: 0.5469 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 -s gbode -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: 4.2821952140075155]