Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.0007349/0.0007349, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009563/0.001691, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006353/0.0006353, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008293/0.001465, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.8802/0.8802, allocations: 173.4 MB / 185.8 MB, free: 8.977 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09535/0.9755, allocations: 52.49 MB / 238.3 MB, free: 4.418 MB / 234.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056e-05/1.204e-05, allocations: 2.312 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002086/0.002099, allocations: 1.641 MB / 241.2 MB, free: 1.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002481/0.002347, allocations: 156.9 kB / 241.3 MB, free: 1.352 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.952e-05/0.002406, allocations: 0 / 241.3 MB, free: 1.352 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.286e-05/0.002439, allocations: 3.938 kB / 241.4 MB, free: 1.348 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.997e-05/0.002499, allocations: 3.938 kB / 241.4 MB, free: 1.344 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.002645, allocations: 39.83 kB / 241.4 MB, free: 1.305 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.485e-05/0.00273, allocations: 27.92 kB / 241.4 MB, free: 1.277 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.962e-05/0.0028, allocations: 12 kB / 241.4 MB, free: 1.266 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.885e-05/0.002858, allocations: 19.92 kB / 241.5 MB, free: 1.246 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.115e-05/0.0029, allocations: 15.97 kB / 241.5 MB, free: 1.23 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.00292, allocations: 4 kB / 241.5 MB, free: 1.227 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.918e-06/0.00293, allocations: 7.938 kB / 241.5 MB, free: 1.219 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.628e-05/0.002966, allocations: 8 kB / 241.5 MB, free: 1.211 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.002993, allocations: 7.938 kB / 241.5 MB, free: 1.203 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.741e-05/0.003081, allocations: 39.78 kB / 241.5 MB, free: 1.164 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.003091, allocations: 0 / 241.5 MB, free: 1.164 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003092, allocations: 0 / 241.5 MB, free: 1.164 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.003106, allocations: 0 / 241.5 MB, free: 1.164 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.00284/0.005946, allocations: 280.3 kB / 241.8 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.005994, allocations: 12.03 kB / 241.8 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.877e-05/0.006043, allocations: 8.938 kB / 241.8 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.006271, allocations: 133.6 kB / 242 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.006284, allocations: 4.375 kB / 242 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.006295, allocations: 4.375 kB / 242 MB, free: 0.6797 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.006544, allocations: 126.1 kB / 242.1 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.006552, allocations: 192 / 242.1 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.00656, allocations: 8.375 kB / 242.1 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.006567, allocations: 384 / 242.1 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.745e-05/0.006594, allocations: 7.938 kB / 242.1 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002451/0.006839, allocations: 157.1 kB / 242.3 MB, free: 356 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.007023, allocations: 45.16 kB / 242.3 MB, free: 292 kB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.69e-05/0.00706, allocations: 17.77 kB / 242.3 MB, free: 268 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.007085, allocations: 4 kB / 242.3 MB, free: 264 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.007113, allocations: 34.5 kB / 242.4 MB, free: 220 kB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 1.773e-06/0.007115, allocations: 0 / 242.4 MB, free: 220 kB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001484/0.007263, allocations: 57.62 kB / 242.4 MB, free: 156 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.007316, allocations: 81.05 kB / 242.5 MB, free: 56 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.007423, allocations: 130.7 kB / 242.6 MB, free: 15.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.007433, allocations: 25.7 kB / 242.6 MB, free: 15.88 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.007475, allocations: 88.05 kB / 242.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.007491, allocations: 3.984 kB / 242.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.007532, allocations: 21.66 kB / 242.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.007623, allocations: 314.8 kB / 243.1 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.007633, allocations: 0 / 243.1 MB, free: 15.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.196e-06/0.007641, allocations: 0 / 243.1 MB, free: 15.45 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.577e-05/0.007667, allocations: 13.05 kB / 243.1 MB, free: 15.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.007669, allocations: 0 / 243.1 MB, free: 15.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.383e-05/0.007733, allocations: 37.62 kB / 243.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.007747, allocations: 4 kB / 243.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.007753, allocations: 0 / 243.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.007763, allocations: 4 kB / 243.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.48e-05/0.007818, allocations: 3.938 kB / 243.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-06/0.00782, allocations: 3.938 kB / 243.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.007839, allocations: 4 kB / 243.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-06/0.007843, allocations: 0 / 243.1 MB, free: 15.37 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 (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 6.363e-05/0.007907, allocations: 116.7 kB / 243.2 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.007977, allocations: 41.69 kB / 243.3 MB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/0.008018, allocations: 8.344 kB / 243.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.008022, allocations: 3.938 kB / 243.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.008028, allocations: 7.938 kB / 243.3 MB, free: 15.17 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.008031, allocations: 0 / 243.3 MB, free: 15.17 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.00816, allocations: 81.81 kB / 243.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.008165, allocations: 4 kB / 243.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.008229, allocations: 8 kB / 243.4 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.008268, allocations: 11.94 kB / 243.4 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.008272, allocations: 4.234 kB / 243.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-06/0.008276, allocations: 0 / 243.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.00828, allocations: 7.984 kB / 243.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.008283, allocations: 3.938 kB / 243.4 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001092/0.008392, allocations: 136.4 kB / 243.6 MB, free: 14.88 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.008404, allocations: 0 / 243.6 MB, free: 14.88 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.816e-05/0.008472, allocations: 11.94 kB / 243.6 MB, free: 14.87 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.426e-05/0.008496, allocations: 0 / 243.6 MB, free: 14.87 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.008503, allocations: 0 / 243.6 MB, free: 14.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.879e-05/0.008541, allocations: 30.31 kB / 243.6 MB, free: 14.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008542, allocations: 4.031 kB / 243.6 MB, free: 14.83 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001874/0.008729, allocations: 4 kB / 243.6 MB, free: 14.83 MB / 250.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 (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 9.591e-05/0.008825, allocations: 76.42 kB / 243.7 MB, free: 14.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.581e-05/0.008911, allocations: 16.84 kB / 243.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.008918, allocations: 4 kB / 243.7 MB, free: 14.72 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.528e-05/0.008933, allocations: 8.797 kB / 243.7 MB, free: 14.71 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.009197, allocations: 20.86 kB / 243.7 MB, free: 14.69 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005412/0.009738, allocations: 166.4 kB / 243.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.517e-05/0.009783, allocations: 59.36 kB / 244 MB, free: 14.42 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.959e-05/0.009813, allocations: 3.984 kB / 244 MB, free: 14.42 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.647e-05/0.009879, allocations: 51.38 kB / 244 MB, free: 14.37 MB / 250.7 MB Notification: Performance of SimCode: time 1.683e-06/0.009881, allocations: 4 kB / 244 MB, free: 14.36 MB / 250.7 MB Notification: Performance of Templates: time 0.003103/0.01298, allocations: 0.5448 MB / 244.6 MB, free: 13.83 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.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.348607398569584]