Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.0009688/0.0009688, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001028/0.001028, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9082/0.9082, allocations: 177.2 MB / 205 MB, free: 5.301 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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 273 MB, free: 1.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.638e-05/3.851e-05, allocations: 2.312 kB / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003308/0.003346, allocations: 1.634 MB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.004487, allocations: 0.5181 MB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.645e-05/0.004583, allocations: 3.938 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.201e-05/0.004645, allocations: 7.875 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.004828, allocations: 11.98 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.005239, allocations: 55.69 kB / 275.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.005375, allocations: 35.86 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.005492, allocations: 11.98 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.005685, allocations: 39.78 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.789e-05/0.005743, allocations: 7.984 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.005764, allocations: 4 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.194e-05/0.005816, allocations: 4 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.00587, allocations: 15.92 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.963e-05/0.0059, allocations: 15.92 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.006072, allocations: 47.83 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.006076, allocations: 0 / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.006078, allocations: 0 / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.006083, allocations: 0 / 275.4 MB, free: 14.97 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005239/0.006607, allocations: 392.4 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.006654, allocations: 8.031 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.006837, allocations: 16.89 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.007076, allocations: 144.4 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.007088, allocations: 4.375 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.007098, allocations: 4.375 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.007385, allocations: 109.6 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.007394, allocations: 4.125 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.007406, allocations: 384 / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.007417, allocations: 3.938 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.566e-05/0.007453, allocations: 8 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.007801, allocations: 263.5 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.139e-05/0.007893, allocations: 65.98 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.196e-05/0.007925, allocations: 19.5 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.007942, allocations: 0 / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.007975, allocations: 41.33 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.007976, allocations: 0 / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.000194/0.00817, allocations: 49.58 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.008225, allocations: 85.05 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.008363, allocations: 193 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.008377, allocations: 25.7 kB / 276.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.00844, allocations: 143.1 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.008458, allocations: 4 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.008499, allocations: 23.33 kB / 277 MB, free: 13.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.008646, allocations: 496.1 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.512e-05/0.008661, allocations: 0 / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.212e-05/0.008674, allocations: 4 kB / 277.5 MB, free: 12.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.403e-05/0.008708, allocations: 11.67 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.00871, allocations: 0 / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.365e-05/0.008794, allocations: 41.64 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.008814, allocations: 7.938 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.008819, allocations: 4.094 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.008835, allocations: 4 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.028e-05/0.008916, allocations: 0 / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.008921, allocations: 0 / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.772e-05/0.008949, allocations: 7.984 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.008956, allocations: 0 / 277.5 MB, free: 12.59 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 (1): * Single equations (assignments): 1 * 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 7.968e-05/0.009035, allocations: 152.6 kB / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-05/0.009108, allocations: 45.59 kB / 277.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.619e-05/0.009144, allocations: 11.8 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.009147, allocations: 0 / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.009151, allocations: 4.031 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.009155, allocations: 0 / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.0093, allocations: 132.6 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.009302, allocations: 0 / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.009355, allocations: 7.938 kB / 277.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.009359, allocations: 3.984 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.009368, allocations: 3.938 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.009371, allocations: 3.938 kB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.009372, allocations: 0 / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.00962, allocations: 207.6 kB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.00966, allocations: 15.98 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.009679, allocations: 3.938 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.009746, allocations: 4 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.009782, allocations: 3.984 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.009786, allocations: 0 / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.421e-05/0.009861, allocations: 143.2 kB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.009861, allocations: 3.938 kB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002439/0.0101, allocations: 4 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (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 Backend phase and start with SimCode phase: time 0.00011/0.01021, allocations: 99.19 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.01031, allocations: 23.67 kB / 278.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01032, allocations: 0 / 278.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.854e-05/0.01034, allocations: 7.688 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.01071, allocations: 16.3 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.01134, allocations: 165.3 kB / 278.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.108e-05/0.01139, allocations: 59.34 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.01142, allocations: 8.219 kB / 278.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.01146, allocations: 12.48 kB / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01146, allocations: 0 / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of Templates: time 0.003308/0.01476, allocations: 0.5361 MB / 279.2 MB, free: 10.79 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.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.6032836819067597]