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: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 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.002052/0.002052, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 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 1.577/1.577, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00169/0.00169, allocations: 39.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3138, allocations: 52.13 MB / 420.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003184/0.317, allocations: 1.461 MB / 422.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002601/0.3173, allocations: 43.89 kB / 422.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.64e-05/0.3174, allocations: 0 / 422.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.657e-05/0.3174, allocations: 7.938 kB / 422.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.082e-05/0.3175, allocations: 3.938 kB / 422.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.3178, allocations: 23.97 kB / 422.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3179, allocations: 39.91 kB / 422.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.318, allocations: 11.98 kB / 422.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.83e-05/0.3181, allocations: 15.92 kB / 422.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.891e-05/0.3181, allocations: 19.92 kB / 422.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.3181, allocations: 4 kB / 422.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.308e-05/0.3182, allocations: 8 kB / 422.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.3182, allocations: 4 kB / 422.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.365e-05/0.3182, allocations: 27.78 kB / 422.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.3184, allocations: 35.69 kB / 422.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3184, allocations: 8 kB / 422.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3184, allocations: 0 / 422.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3184, allocations: 0 / 422.6 MB, free: 13.4 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.0005858/0.319, allocations: 352.8 kB / 422.9 MB, free: 13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.319, allocations: 11.89 kB / 422.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.3191, allocations: 8.938 kB / 422.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.3194, allocations: 184.3 kB / 423.1 MB, free: 12.77 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.0001259/0.3195, allocations: 34.27 kB / 423.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.3196, allocations: 4.375 kB / 423.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.3199, allocations: 123.8 kB / 423.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3199, allocations: 3.938 kB / 423.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3199, allocations: 4 kB / 423.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.3199, allocations: 0 / 423.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.585e-05/0.32, allocations: 15.98 kB / 423.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001813/0.3201, allocations: 169.6 kB / 423.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.3204, allocations: 135.7 kB / 423.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.738e-05/0.3204, allocations: 24.84 kB / 423.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.3204, allocations: 4 kB / 423.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3205, allocations: 30.56 kB / 423.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3205, allocations: 0 / 423.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000261/0.3207, allocations: 85.52 kB / 423.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.3208, allocations: 59.41 kB / 423.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.098e-05/0.3209, allocations: 109.8 kB / 423.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3209, allocations: 25.7 kB / 423.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.377e-05/0.321, allocations: 80.14 kB / 424 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.321, allocations: 19.88 kB / 424 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.321, allocations: 21.72 kB / 424 MB, free: 11.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3211, allocations: 310.8 kB / 424.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.284e-05/0.3212, allocations: 12.42 kB / 424.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.292e-05/0.3212, allocations: 36.3 kB / 424.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.73e-05/0.3213, allocations: 52.23 kB / 424.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3213, allocations: 4 kB / 424.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001101/0.3214, allocations: 73.55 kB / 424.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3214, allocations: 16.09 kB / 424.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3214, allocations: 0 / 424.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.3214, allocations: 0 / 424.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.3215, allocations: 4 kB / 424.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.3215, allocations: 7.938 kB / 424.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.463e-05/0.3215, allocations: 0 / 424.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.3215, allocations: 4 kB / 424.5 MB, free: 11.13 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.0001106/0.3216, allocations: 117.8 kB / 424.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3217, allocations: 69.58 kB / 424.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.3218, allocations: 7.969 kB / 424.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3218, allocations: 0 / 424.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3218, allocations: 3.984 kB / 424.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3218, allocations: 4 kB / 424.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.3219, allocations: 161.7 kB / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3219, allocations: 0 / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.959e-06/0.3219, allocations: 3.938 kB / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3219, allocations: 3.938 kB / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.465e-06/0.3219, allocations: 0 / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3219, allocations: 0 / 424.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3219, allocations: 4 kB / 424.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001368/0.3221, allocations: 87.23 kB / 425 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.3221, allocations: 85.05 kB / 425.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.3222, allocations: 15.88 kB / 425.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.597e-05/0.3222, allocations: 0 / 425.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.099e-05/0.3222, allocations: 4 kB / 425.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3222, allocations: 4 kB / 425.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.56e-05/0.3223, allocations: 87.27 kB / 425.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3223, allocations: 0 / 425.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001985/0.3225, allocations: 12 kB / 425.2 MB, free: 10.37 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.0001279/0.3226, allocations: 103.2 kB / 425.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001389/0.3228, allocations: 31.92 kB / 425.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3228, allocations: 0 / 425.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.3228, allocations: 0 / 425.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.3235, allocations: 0.7261 MB / 426.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003499/0.3239, allocations: 133.5 kB / 426.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.3242, allocations: 0.6844 MB / 426.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.477e-05/0.3242, allocations: 4.234 kB / 426.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.3242, allocations: 7.438 kB / 426.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3242, allocations: 0 / 426.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of Templates: time 0.003422/0.3276, allocations: 0.7014 MB / 427.6 MB, free: 7.902 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.073817227035761]