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.001281/0.001281, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001469/0.001469, allocations: 206.8 kB / 24.48 MB, free: 3.695 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.486/1.486, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001591/0.001591, allocations: 47.92 kB / 378.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2991, allocations: 53.37 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002513/0.3016, allocations: 1.211 MB / 433.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003587/0.3052, allocations: 2.076 MB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.083e-05/0.3052, allocations: 7.938 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.988e-05/0.3052, allocations: 7.875 kB / 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.001359/0.3066, allocations: 470.6 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.098e-05/0.3066, allocations: 7.938 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.919e-05/0.3067, allocations: 11.97 kB / 436.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.35e-05/0.3067, allocations: 0 / 436.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.369e-05/0.3067, allocations: 7.938 kB / 436.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.307, allocations: 4 kB / 436.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.307, allocations: 3.938 kB / 436.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008575/0.3079, allocations: 0.5073 MB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.3079, allocations: 0 / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.3079, allocations: 4 kB / 436.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005841/0.3085, allocations: 385.8 kB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3085, allocations: 0 / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3085, allocations: 0 / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3085, 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.0005099/0.309, allocations: 345.4 kB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3091, allocations: 12.03 kB / 437.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.851e-05/0.3092, allocations: 80.17 kB / 437.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.3094, allocations: 189.8 kB / 437.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.891e-05/0.3094, allocations: 154.9 kB / 437.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.522e-05/0.3095, allocations: 154.7 kB / 437.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.3097, allocations: 105 kB / 438 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.634e-05/0.3097, allocations: 75.28 kB / 438.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.026e-05/0.3098, allocations: 154.6 kB / 438.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-05/0.3099, allocations: 150.6 kB / 438.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.316e-05/0.31, allocations: 162.5 kB / 438.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.3103, allocations: 397.6 kB / 438.9 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.3104, allocations: 169.1 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.38e-05/0.3105, allocations: 80.14 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.349e-05/0.3105, allocations: 79.28 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.3107, allocations: 51.3 kB / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.545e-06/0.3107, allocations: 0 / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.3108, allocations: 37.69 kB / 439.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.3109, allocations: 51.41 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.311, allocations: 105.8 kB / 439.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.311, allocations: 25.7 kB / 439.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.3111, allocations: 80.14 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.3111, allocations: 3.953 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.3111, allocations: 17.84 kB / 439.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3113, allocations: 318.8 kB / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-06/0.3113, allocations: 0 / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.857e-06/0.3113, allocations: 7.938 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.18e-05/0.3113, allocations: 8.797 kB / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3113, allocations: 0 / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.909e-05/0.3114, allocations: 41.62 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3114, allocations: 4 kB / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3114, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3114, allocations: 4.094 kB / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.219e-05/0.3115, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.3115, allocations: 0 / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.3115, allocations: 4 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-06/0.3115, 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 9.633e-05/0.3116, allocations: 109.8 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.3116, allocations: 3.938 kB / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.3116, allocations: 15.09 kB / 440.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3116, allocations: 3.938 kB / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3116, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3116, allocations: 0 / 440.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.3117, allocations: 101.3 kB / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3117, allocations: 0 / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.3118, allocations: 4 kB / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3118, allocations: 3.938 kB / 440.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.3118, allocations: 3.984 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3118, allocations: 0 / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3118, allocations: 4 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.578e-05/0.3119, allocations: 53.14 kB / 440.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.097e-06/0.3119, allocations: 7.938 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.3119, allocations: 0 / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.373e-05/0.3119, allocations: 8.016 kB / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.3119, allocations: 0 / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.3119, allocations: 0 / 440.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.483e-05/0.312, allocations: 87.28 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.312, allocations: 0 / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004755/0.3124, allocations: 151.4 kB / 440.5 MB, free: 14.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (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 Backend phase and start with SimCode phase: time 0.001193/0.3136, allocations: 0.5064 MB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.118e-05/0.3137, allocations: 4 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3137, allocations: 0 / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.113e-06/0.3137, allocations: 7.984 kB / 441.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.3139, allocations: 5.234 kB / 441.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002991/0.3142, allocations: 128.6 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.191e-05/0.3142, allocations: 63.47 kB / 441.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.655e-05/0.3142, allocations: 11.44 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3142, allocations: 0 / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of Templates: time 0.006551/0.3208, allocations: 3.398 MB / 444.7 MB, free: 10.16 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: 8.037805561034475]