Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.000924/0.000924, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009612/0.0009612, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9447/0.9447, allocations: 177.1 MB / 205.3 MB, free: 4.488 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 273.5 MB, free: 4.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.331e-05/2.504e-05, allocations: 2.312 kB / 273.5 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002984/0.003009, allocations: 1.519 MB / 275 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001909/0.0032, allocations: 35.84 kB / 275 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.495e-05/0.003265, allocations: 7.938 kB / 275.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/0.003292, allocations: 0 / 275.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.083e-05/0.003333, allocations: 7.875 kB / 275.1 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.003562, allocations: 25.73 kB / 275.1 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.737e-05/0.003649, allocations: 31.91 kB / 275.1 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.374e-05/0.003723, allocations: 4 kB / 275.1 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.07e-05/0.003784, allocations: 15.98 kB / 275.1 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.661e-05/0.00382, allocations: 11.92 kB / 275.1 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.003838, allocations: 8.578 kB / 275.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-06/0.003845, allocations: 0 / 275.2 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.927e-05/0.003864, allocations: 8.656 kB / 275.2 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.784e-05/0.003882, allocations: 7.938 kB / 275.2 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.312e-05/0.003965, allocations: 27.95 kB / 275.2 MB, free: 2.699 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.003967, allocations: 0 / 275.2 MB, free: 2.699 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.003968, allocations: 3.938 kB / 275.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.003972, allocations: 0 / 275.2 MB, free: 2.695 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002773/0.004249, allocations: 240.9 kB / 275.4 MB, free: 2.434 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.004282, allocations: 8.031 kB / 275.4 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.004313, allocations: 8.922 kB / 275.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.00446, allocations: 117.7 kB / 275.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.004477, allocations: 4.375 kB / 275.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.004486, allocations: 12.31 kB / 275.6 MB, free: 2.262 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.004663, allocations: 100.5 kB / 275.7 MB, free: 2.148 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.004671, allocations: 4.188 kB / 275.7 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.004679, allocations: 4.375 kB / 275.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.004684, allocations: 384 / 275.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.231e-05/0.004706, allocations: 11.88 kB / 275.7 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.174e-05/0.004778, allocations: 57.03 kB / 275.8 MB, free: 2.059 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.85e-05/0.004836, allocations: 34.56 kB / 275.8 MB, free: 2.016 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.692e-05/0.004863, allocations: 16.84 kB / 275.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.004871, allocations: 4 kB / 275.8 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.004892, allocations: 30.56 kB / 275.8 MB, free: 1.953 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.004893, allocations: 0 / 275.8 MB, free: 1.953 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 9.576e-05/0.004988, allocations: 45.62 kB / 275.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.005031, allocations: 59.41 kB / 275.9 MB, free: 1.832 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.112e-05/0.005093, allocations: 110.7 kB / 276.1 MB, free: 1.711 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/0.005102, allocations: 25.7 kB / 276.1 MB, free: 1.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.384e-05/0.005126, allocations: 80.14 kB / 276.2 MB, free: 1.598 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.175e-06/0.005134, allocations: 0 / 276.2 MB, free: 1.598 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.005159, allocations: 13.72 kB / 276.2 MB, free: 1.578 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.00525, allocations: 326.8 kB / 276.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.541e-06/0.005255, allocations: 4 kB / 276.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.005261, allocations: 0 / 276.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.834e-05/0.005279, allocations: 8.859 kB / 276.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005281, allocations: 0 / 276.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.536e-05/0.005326, allocations: 37.64 kB / 276.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.005339, allocations: 7.984 kB / 276.6 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.005343, allocations: 0 / 276.6 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.005354, allocations: 192 / 276.6 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.557e-05/0.00539, allocations: 8.094 kB / 276.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.005392, allocations: 0 / 276.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.362e-05/0.005406, allocations: 7.938 kB / 276.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.005411, allocations: 7.984 kB / 276.6 MB, free: 1.16 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.996e-05/0.005471, allocations: 109.8 kB / 276.7 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.00551, allocations: 41.62 kB / 276.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.005533, allocations: 12 kB / 276.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.005534, allocations: 0 / 276.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.005535, allocations: 0 / 276.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.005538, allocations: 0 / 276.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.574e-05/0.005594, allocations: 73.78 kB / 276.8 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.005594, allocations: 4 kB / 276.8 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.005635, allocations: 8 kB / 276.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.005637, allocations: 0 / 276.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.005641, allocations: 256 / 276.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.005645, allocations: 7.984 kB / 276.8 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.005646, allocations: 0 / 276.8 MB, free: 0.875 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.321e-05/0.00569, allocations: 61.06 kB / 276.9 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-06/0.005696, allocations: 3.938 kB / 276.9 MB, free: 0.793 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.005709, allocations: 7.938 kB / 276.9 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.702e-05/0.005726, allocations: 7.984 kB / 276.9 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-06/0.005729, allocations: 4 kB / 276.9 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.005731, allocations: 0 / 276.9 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.334e-05/0.005744, allocations: 8.859 kB / 276.9 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005745, allocations: 0 / 276.9 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001582/0.005903, allocations: 4 kB / 276.9 MB, free: 0.7578 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 7.261e-05/0.005975, allocations: 76.42 kB / 277 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.859e-05/0.006034, allocations: 20.84 kB / 277 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.006036, allocations: 0 / 277 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.006037, allocations: 0 / 277 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.00616, allocations: 25.38 kB / 277 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002122/0.006372, allocations: 115.3 kB / 277.2 MB, free: 496 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.309e-05/0.006405, allocations: 59.22 kB / 277.2 MB, free: 416 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.317e-05/0.006419, allocations: 0 / 277.2 MB, free: 416 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.006463, allocations: 55.36 kB / 277.3 MB, free: 360 kB / 250.7 MB Notification: Performance of SimCode: time 4.21e-07/0.006463, allocations: 0 / 277.3 MB, free: 360 kB / 250.7 MB Notification: Performance of Templates: time 0.002085/0.008548, allocations: 481.4 kB / 277.7 MB, free: 15.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3767522680573165]