Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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.001714/0.001714, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 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.001436/0.001436, allocations: 205.7 kB / 24.49 MB, free: 3.965 MB / 14.72 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 1.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 43.92 kB / 378.9 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2203, allocations: 53.37 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002138/0.2224, allocations: 1.214 MB / 433.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.2256, allocations: 2.092 MB / 435.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.795e-05/0.2256, allocations: 0 / 435.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.2257, allocations: 0 / 435.6 MB, free: 3.434 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001203/0.2269, allocations: 477.5 kB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.267e-05/0.2269, allocations: 4 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.176e-05/0.2269, allocations: 7.938 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.601e-05/0.227, allocations: 3.984 kB / 436.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.864e-05/0.227, allocations: 11.94 kB / 436.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.544e-05/0.2271, allocations: 7.984 kB / 436.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.636e-06/0.2271, allocations: 0 / 436.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007567/0.2278, allocations: 0.4995 MB / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.169e-05/0.2278, allocations: 3.984 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.2279, allocations: 7.938 kB / 436.6 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000526/0.2284, allocations: 381.8 kB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2284, allocations: 0 / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2284, allocations: 0 / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2284, allocations: 0 / 437 MB, free: 2.055 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004299/0.2288, allocations: 345.4 kB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2289, allocations: 12.03 kB / 437.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.285e-05/0.2289, allocations: 84.17 kB / 437.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.2291, allocations: 181.8 kB / 437.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.585e-05/0.2291, allocations: 154.9 kB / 437.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.013e-05/0.2292, allocations: 154.7 kB / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.944e-05/0.2293, allocations: 101 kB / 438 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.2293, allocations: 83.22 kB / 438.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-05/0.2294, allocations: 154.6 kB / 438.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.253e-05/0.2294, allocations: 154.5 kB / 438.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.083e-05/0.2295, allocations: 150.6 kB / 438.5 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002624/0.2297, allocations: 397.6 kB / 438.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.2299, allocations: 173.1 kB / 439.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.2299, allocations: 84.08 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.2299, allocations: 83.25 kB / 439.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/0.23, allocations: 43.36 kB / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.914e-06/0.2301, allocations: 0 / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001208/0.2302, allocations: 41.69 kB / 439.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.2302, allocations: 55.34 kB / 439.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.426e-05/0.2303, allocations: 101.8 kB / 439.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.2303, allocations: 25.83 kB / 439.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.2303, allocations: 88.14 kB / 439.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.293e-05/0.2304, allocations: 7.938 kB / 439.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.2304, allocations: 9.719 kB / 439.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2305, allocations: 318.8 kB / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.304e-06/0.2305, allocations: 0 / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.378e-06/0.2305, allocations: 0 / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.22e-05/0.2306, allocations: 8.859 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2306, allocations: 0 / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.906e-05/0.2306, allocations: 41.56 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2306, allocations: 12.09 kB / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.2306, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2306, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.646e-05/0.2307, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.2307, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.2307, allocations: 4 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-06/0.2307, allocations: 0 / 440 MB, free: 14.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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.916e-05/0.2308, allocations: 113.8 kB / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.2308, allocations: 3.938 kB / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.2308, allocations: 7.109 kB / 440.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2308, allocations: 11.98 kB / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2308, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-06/0.2308, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.2308, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.231e-05/0.2308, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-06/0.2308, allocations: 7.938 kB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.862e-05/0.2309, allocations: 112.9 kB / 440.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001272/0.231, allocations: 202.8 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.527e-05/0.2311, allocations: 4 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.525e-05/0.2311, allocations: 87.27 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of Backend: time 1.8e-07/0.2311, allocations: 4.062 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.2325, allocations: 497.5 kB / 441 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 0.0004304/0.2329, allocations: 0.5624 MB / 441.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Templates: time 0.006834/0.2397, allocations: 3.18 MB / 444.8 MB, free: 10.08 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4257045589984045]