Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001273/0.001273, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 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.0009537/0.0009537, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9696/0.9696, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.134e-05/2.261e-05, allocations: 6.25 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.004434/0.004457, allocations: 1.474 MB / 269.5 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002513/0.004708, allocations: 111.5 kB / 269.6 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.155e-05/0.00476, allocations: 0 / 269.6 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.004787, allocations: 3.938 kB / 269.6 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.672e-05/0.004823, allocations: 0 / 269.6 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.005035, allocations: 23.91 kB / 269.6 MB, free: 4.824 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.946e-05/0.005114, allocations: 31.86 kB / 269.6 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.122e-05/0.005196, allocations: 4 kB / 269.6 MB, free: 4.789 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.942e-05/0.005245, allocations: 15.97 kB / 269.6 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.804e-05/0.005283, allocations: 12 kB / 269.7 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.005304, allocations: 0 / 269.7 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.977e-06/0.005313, allocations: 4 kB / 269.7 MB, free: 4.758 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.694e-05/0.00533, allocations: 7.922 kB / 269.7 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.005355, allocations: 8 kB / 269.7 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.808e-05/0.005433, allocations: 23.84 kB / 269.7 MB, free: 4.719 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.005435, allocations: 0 / 269.7 MB, free: 4.719 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.005437, allocations: 4 kB / 269.7 MB, free: 4.715 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.005442, allocations: 0 / 269.7 MB, free: 4.715 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.0003207/0.005762, allocations: 360.6 kB / 270.1 MB, free: 4.324 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.005797, allocations: 8.031 kB / 270.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.005833, allocations: 12.94 kB / 270.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.00597, allocations: 124.5 kB / 270.2 MB, free: 4.156 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.005979, allocations: 4.375 kB / 270.2 MB, free: 4.152 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-06/0.005989, allocations: 4.375 kB / 270.2 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003233/0.009222, allocations: 102.2 kB / 270.3 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.009232, allocations: 192 / 270.3 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.009241, allocations: 384 / 270.3 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.009251, allocations: 12.36 kB / 270.3 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.726e-05/0.009288, allocations: 7.938 kB / 270.3 MB, free: 4.012 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001127/0.009401, allocations: 116.6 kB / 270.4 MB, free: 3.863 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.009511, allocations: 47.02 kB / 270.5 MB, free: 3.805 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.879e-05/0.00955, allocations: 11.69 kB / 270.5 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.009567, allocations: 0 / 270.5 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.00959, allocations: 41.39 kB / 270.5 MB, free: 3.738 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.403e-06/0.009591, allocations: 0 / 270.5 MB, free: 3.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001616/0.009753, allocations: 53.69 kB / 270.6 MB, free: 3.68 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.009794, allocations: 59.34 kB / 270.7 MB, free: 3.609 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.716e-05/0.009881, allocations: 173.9 kB / 270.8 MB, free: 3.422 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.009893, allocations: 25.7 kB / 270.8 MB, free: 3.391 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.009939, allocations: 130.9 kB / 271 MB, free: 3.258 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-06/0.009941, allocations: 0 / 271 MB, free: 3.258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.009972, allocations: 23.38 kB / 271 MB, free: 3.227 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.0101, allocations: 492.1 kB / 271.5 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.458e-06/0.0101, allocations: 0 / 271.5 MB, free: 2.734 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.148e-06/0.01011, allocations: 4 kB / 271.5 MB, free: 2.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.958e-05/0.01014, allocations: 119.2 kB / 271.6 MB, free: 2.613 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.768e-05/0.01016, allocations: 123.1 kB / 271.7 MB, free: 2.492 MB / 250.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.857e-05/0.01021, allocations: 29.7 kB / 271.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/0.01026, allocations: 130.2 kB / 271.9 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-05/0.01029, allocations: 127.1 kB / 272 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.564e-05/0.01036, allocations: 246.4 kB / 272.2 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.749e-05/0.01038, allocations: 123.1 kB / 272.4 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-05/0.01044, allocations: 238.4 kB / 272.6 MB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.819e-05/0.01051, allocations: 123.4 kB / 272.7 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.01054, allocations: 131.1 kB / 272.8 MB, free: 1.359 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.577e-05/0.01062, allocations: 271.8 kB / 273.1 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.683e-05/0.01068, allocations: 49.64 kB / 273.2 MB, free: 1.027 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.855e-05/0.01071, allocations: 8 kB / 273.2 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.01071, allocations: 8 kB / 273.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.01072, allocations: 0 / 273.2 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.01072, allocations: 3.938 kB / 273.2 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.326e-05/0.01078, allocations: 120.6 kB / 273.3 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01079, allocations: 0 / 273.3 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.246e-05/0.01086, allocations: 11.92 kB / 273.3 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.01086, allocations: 4 kB / 273.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.01087, allocations: 0 / 273.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.01087, allocations: 0 / 273.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01087, allocations: 0 / 273.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.496e-05/0.01095, allocations: 88.59 kB / 273.4 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-06/0.01095, allocations: 7.953 kB / 273.4 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.01097, allocations: 0 / 273.4 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.364e-05/0.01098, allocations: 4 kB / 273.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-06/0.01098, allocations: 0 / 273.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.01099, allocations: 0 / 273.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.095e-05/0.01103, allocations: 131.2 kB / 273.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01103, allocations: 0 / 273.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.01123, allocations: 4 kB / 273.5 MB, free: 0.5781 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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 6.855e-05/0.0113, allocations: 99.19 kB / 273.6 MB, free: 484 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.682e-05/0.01134, allocations: 11.94 kB / 273.6 MB, free: 472 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01135, allocations: 0 / 273.6 MB, free: 472 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.01135, allocations: 0 / 273.6 MB, free: 472 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.01155, allocations: 21.05 kB / 273.7 MB, free: 448 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002242/0.01177, allocations: 121.1 kB / 273.8 MB, free: 300 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.261e-05/0.0118, allocations: 59.34 kB / 273.8 MB, free: 220 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.01181, allocations: 0 / 273.8 MB, free: 220 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.879e-05/0.01183, allocations: 8.5 kB / 273.9 MB, free: 212 kB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01183, allocations: 0 / 273.9 MB, free: 212 kB / 250.7 MB Notification: Performance of Templates: time 0.005184/0.01701, allocations: 306.5 kB / 274.2 MB, free: 15.91 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.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.596606988925487]