Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001298/0.001298, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001295/0.001295, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.9047/0.9047, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.324e-05, allocations: 2.312 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001701/0.001715, allocations: 1.498 MB / 274.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002091/0.001924, allocations: 107.5 kB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.157e-05/0.001975, allocations: 0 / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.411e-05/0.001999, allocations: 7.922 kB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.301e-05/0.002032, allocations: 4 kB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.002214, allocations: 19.92 kB / 275.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.781e-05/0.002281, allocations: 27.86 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.349e-05/0.002345, allocations: 7.984 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.741e-05/0.002392, allocations: 15.98 kB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.645e-05/0.002429, allocations: 8 kB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.002445, allocations: 4 kB / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.023e-06/0.002452, allocations: 0 / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.788e-05/0.00247, allocations: 11.92 kB / 275.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.621e-05/0.002486, allocations: 7.984 kB / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 5.98e-05/0.002546, allocations: 23.86 kB / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.002548, allocations: 0 / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.8e-07/0.002548, allocations: 0 / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.666e-06/0.002551, allocations: 0 / 275.2 MB, free: 15.57 MB / 266.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.0002335/0.002784, allocations: 244.9 kB / 275.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.002815, allocations: 12.03 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.277e-05/0.002838, allocations: 4.938 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.002954, allocations: 117.7 kB / 275.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.002963, allocations: 8.359 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.002972, allocations: 4.375 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.003204, allocations: 96.56 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-06/0.003209, allocations: 192 / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-06/0.003214, allocations: 4.375 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.003219, allocations: 4.375 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.548e-05/0.003235, allocations: 7.938 kB / 275.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.567e-05/0.0033, allocations: 64.97 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.724e-05/0.003358, allocations: 30.56 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.003377, allocations: 16.84 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.003388, allocations: 0 / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.003405, allocations: 30.56 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.003406, allocations: 0 / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 8.935e-05/0.003495, allocations: 45.62 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.00353, allocations: 63.41 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.159e-05/0.003581, allocations: 110.7 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.003589, allocations: 25.7 kB / 276.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.918e-05/0.003608, allocations: 80.14 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-06/0.00361, allocations: 0 / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.641e-05/0.003626, allocations: 13.72 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.003694, allocations: 322.8 kB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.214e-06/0.003697, allocations: 0 / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.986e-06/0.0037, allocations: 0 / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.633e-05/0.003716, allocations: 83.22 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/0.003732, allocations: 75.28 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.008e-05/0.003762, allocations: 33.64 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.003787, allocations: 83.28 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.003805, allocations: 75.28 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.003843, allocations: 154.6 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.861e-05/0.003862, allocations: 83.22 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.322e-05/0.003895, allocations: 154.5 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.84e-05/0.003933, allocations: 79.22 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.00395, allocations: 79.28 kB / 277.3 MB, free: 13.24 MB / 266.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 6.632e-05/0.004016, allocations: 185.1 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.439e-05/0.004051, allocations: 41.86 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.004075, allocations: 16 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.004076, allocations: 0 / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.004078, allocations: 0 / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.004081, allocations: 3.938 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.493e-05/0.004126, allocations: 73.77 kB / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.004129, allocations: 0 / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.846e-05/0.004177, allocations: 8 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.004182, allocations: 0 / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-06/0.004185, allocations: 0 / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.004187, allocations: 0 / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.004187, allocations: 256 / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.473e-05/0.004232, allocations: 65.06 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.004239, allocations: 7.953 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-06/0.004248, allocations: 4 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-06/0.004255, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.134e-06/0.004257, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.004262, allocations: 4 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.348e-05/0.004275, allocations: 16.83 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004275, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001092/0.004384, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.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.929e-05/0.004454, allocations: 84.36 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 3.846e-05/0.004492, allocations: 12 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.004494, allocations: 4 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.1e-07/0.004495, allocations: 0 / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.286e-05/0.004587, allocations: 21.02 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001703/0.004758, allocations: 111.4 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.46e-05/0.004782, allocations: 55.36 kB / 278 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.422e-06/0.004789, allocations: 3.984 kB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.683e-05/0.004816, allocations: 51.38 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.004816, allocations: 4 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of Templates: time 0.001502/0.006318, allocations: 317 kB / 278.4 MB, free: 12.06 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.561037705745548]