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.001684/0.001684, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002034/0.002034, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.63/1.63, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001602/0.001602, allocations: 47.92 kB / 378.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3289, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00315/0.3321, allocations: 1.457 MB / 433.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002321/0.3323, allocations: 43.84 kB / 433.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.106e-05/0.3324, allocations: 0 / 433.1 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.596e-05/0.3324, allocations: 3.938 kB / 433.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.302e-05/0.3325, allocations: 3.938 kB / 433.1 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.3328, allocations: 27.95 kB / 433.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.3329, allocations: 39.92 kB / 433.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.333, allocations: 7.984 kB / 433.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.3331, allocations: 19.92 kB / 433.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.473e-05/0.3331, allocations: 19.92 kB / 433.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.3332, allocations: 4 kB / 433.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.338e-05/0.3332, allocations: 4 kB / 433.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.3332, allocations: 11.94 kB / 433.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.539e-05/0.3333, allocations: 27.84 kB / 433.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.3334, allocations: 39.62 kB / 433.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3334, allocations: 3.938 kB / 433.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3334, allocations: 0 / 433.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3334, allocations: 4 kB / 433.3 MB, free: 5.215 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.0005795/0.334, allocations: 267.8 kB / 433.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3341, allocations: 8.031 kB / 433.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.3341, allocations: 12.89 kB / 433.6 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.3344, allocations: 122.5 kB / 433.7 MB, free: 4.762 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.0001182/0.3345, allocations: 34.25 kB / 433.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.3345, allocations: 8.375 kB / 433.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.3349, allocations: 127.8 kB / 433.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.3349, allocations: 7.938 kB / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.3349, allocations: 0 / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3349, allocations: 0 / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.041e-05/0.335, allocations: 19.98 kB / 433.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.3352, allocations: 140.6 kB / 434.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.3354, allocations: 58.62 kB / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.343e-05/0.3354, allocations: 16.86 kB / 434.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.3354, allocations: 7.984 kB / 434.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.3355, allocations: 38.5 kB / 434.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.3355, allocations: 0 / 434.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002337/0.3357, allocations: 77.56 kB / 434.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.301e-05/0.3358, allocations: 55.41 kB / 434.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.3359, allocations: 110 kB / 434.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3359, allocations: 29.7 kB / 434.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.29e-05/0.336, allocations: 84.14 kB / 434.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.336, allocations: 11.95 kB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.336, allocations: 21.7 kB / 434.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3362, allocations: 310.8 kB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.163e-05/0.3362, allocations: 12 kB / 434.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.951e-05/0.3363, allocations: 36.28 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.501e-05/0.3363, allocations: 48.23 kB / 435 MB, free: 3.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3364, allocations: 0 / 435 MB, free: 3.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000122/0.3365, allocations: 73.52 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3365, allocations: 16.09 kB / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3365, allocations: 0 / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.3365, allocations: 4 kB / 435.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.238e-05/0.3366, allocations: 11.98 kB / 435.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.3366, allocations: 3.938 kB / 435.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.3366, allocations: 4 kB / 435.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.3366, allocations: 0 / 435.1 MB, free: 3.25 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 0.0001386/0.3368, allocations: 115.7 kB / 435.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.3369, allocations: 69.56 kB / 435.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.3369, allocations: 8.062 kB / 435.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3369, allocations: 4 kB / 435.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3369, allocations: 0 / 435.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.3369, allocations: 4.078 kB / 435.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.3371, allocations: 128.7 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3371, allocations: 0 / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-06/0.3371, allocations: 7.875 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.3371, allocations: 11.92 kB / 435.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.3371, allocations: 4 kB / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3371, allocations: 0 / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3371, allocations: 0 / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.3373, allocations: 93.33 kB / 435.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.476e-06/0.3373, allocations: 4 kB / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.3373, allocations: 3.938 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.057e-05/0.3374, allocations: 11.98 kB / 435.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-06/0.3374, allocations: 0 / 435.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.3374, allocations: 4 kB / 435.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.279e-05/0.3374, allocations: 83.28 kB / 435.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3374, allocations: 4 kB / 435.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001978/0.3376, allocations: 4 kB / 435.6 MB, free: 2.621 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.0001203/0.3378, allocations: 103.2 kB / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001285/0.3379, allocations: 27.94 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3379, allocations: 0 / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.3379, allocations: 4 kB / 435.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.3386, allocations: 0.726 MB / 436.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.339, allocations: 129.6 kB / 436.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.3393, allocations: 0.6846 MB / 437.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.351e-05/0.3393, allocations: 4 kB / 437.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.612e-05/0.3394, allocations: 7.438 kB / 437.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3394, allocations: 0 / 437.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of Templates: time 0.003558/0.3429, allocations: 0.7213 MB / 438 MB, free: 144 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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.952520483871922]