Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.001511/0.001511, allocations: 75.27 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.001366/0.001366, allocations: 151.7 kB / 24.49 MB, free: 3.73 MB / 14.72 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 1.459/1.459, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 46.61 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.09015, allocations: 52.16 MB / 371.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002195/0.09235, allocations: 1.201 MB / 372.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.09548, allocations: 1.977 MB / 374.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.402e-05/0.0955, allocations: 0 / 374.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.09552, allocations: 3.938 kB / 374.7 MB, free: 4.164 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001138/0.09666, allocations: 442.6 kB / 375.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.121e-05/0.09668, allocations: 0 / 375.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.519e-05/0.09672, allocations: 7.938 kB / 375.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.762e-05/0.09676, allocations: 4 kB / 375.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.014e-05/0.09678, allocations: 7.922 kB / 375.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.321e-05/0.09683, allocations: 8 kB / 375.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.446e-06/0.09684, allocations: 0 / 375.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006901/0.09753, allocations: 451.5 kB / 375.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.106e-05/0.09754, allocations: 0 / 375.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.708e-05/0.09757, allocations: 7.922 kB / 375.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.09806, allocations: 339.1 kB / 376 MB, free: 2.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09806, allocations: 0 / 376 MB, free: 2.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09806, allocations: 0 / 376 MB, free: 2.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.09807, allocations: 0 / 376 MB, free: 2.922 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.0004227/0.09849, allocations: 333.5 kB / 376.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.09852, allocations: 12.92 kB / 376.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.0986, allocations: 84.22 kB / 376.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.09875, allocations: 185.8 kB / 376.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.457e-05/0.09882, allocations: 154.9 kB / 376.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.428e-05/0.09888, allocations: 154.7 kB / 376.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.803e-05/0.09895, allocations: 101 kB / 377 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.09899, allocations: 75.28 kB / 377 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.09906, allocations: 162.5 kB / 377.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.62e-05/0.09913, allocations: 154.6 kB / 377.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.29e-05/0.09919, allocations: 150.6 kB / 377.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002711/0.09946, allocations: 393.6 kB / 377.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.826e-05/0.09956, allocations: 177.1 kB / 378.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.932e-05/0.0996, allocations: 84.14 kB / 378.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.09964, allocations: 79.22 kB / 378.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.09977, allocations: 43.36 kB / 378.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.09977, allocations: 0 / 378.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000119/0.09989, allocations: 41.62 kB / 378.3 MB, free: 468 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.09994, allocations: 55.41 kB / 378.3 MB, free: 400 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.1, allocations: 97.8 kB / 378.4 MB, free: 292 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.1, allocations: 29.64 kB / 378.5 MB, free: 256 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.1001, allocations: 96.25 kB / 378.6 MB, free: 156 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.041e-05/0.1001, allocations: 0 / 378.6 MB, free: 156 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.1001, allocations: 9.719 kB / 378.6 MB, free: 140 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1003, allocations: 310.8 kB / 378.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.605e-06/0.1003, allocations: 4 kB / 378.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.127e-06/0.1003, allocations: 0 / 378.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.645e-05/0.1003, allocations: 16.86 kB / 378.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1003, allocations: 0 / 378.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.672e-05/0.1004, allocations: 37.62 kB / 378.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1004, allocations: 8.094 kB / 378.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1004, allocations: 3.938 kB / 378.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1004, allocations: 4 kB / 379 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.744e-05/0.1004, allocations: 0 / 379 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.1004, allocations: 0 / 379 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.513e-05/0.1004, allocations: 192 / 379 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1004, allocations: 0 / 379 MB, free: 15.74 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 8.157e-05/0.1005, allocations: 113.8 kB / 379.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.675e-05/0.1005, allocations: 7.891 kB / 379.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.1006, allocations: 11.14 kB / 379.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1006, allocations: 0 / 379.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1006, allocations: 4 kB / 379.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1006, allocations: 4 kB / 379.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.389e-05/0.1007, allocations: 93.33 kB / 379.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1007, allocations: 0 / 379.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.34e-06/0.1007, allocations: 4 kB / 379.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.1007, allocations: 3.938 kB / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-06/0.1007, allocations: 0 / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1007, allocations: 3.984 kB / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1007, allocations: 0 / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.289e-05/0.1008, allocations: 61.08 kB / 379.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-06/0.1008, allocations: 7.969 kB / 379.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.1008, allocations: 0 / 379.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.1008, allocations: 3.938 kB / 379.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.1008, allocations: 7.984 kB / 379.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.1008, allocations: 0 / 379.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.525e-05/0.1008, allocations: 83.28 kB / 379.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1008, allocations: 0 / 379.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.1012, allocations: 127.6 kB / 379.5 MB, free: 15.16 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.00111/0.1023, allocations: 0.4906 MB / 380 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.98e-05/0.1024, allocations: 8 kB / 380 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1024, allocations: 0 / 380 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.837e-06/0.1024, allocations: 4 kB / 380 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.1026, allocations: 8.062 kB / 380 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000265/0.1028, allocations: 114.7 kB / 380.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.139e-05/0.1029, allocations: 59.34 kB / 380.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.1029, allocations: 7.984 kB / 380.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.1029, allocations: 12.5 kB / 380.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1029, allocations: 0 / 380.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Templates: time 0.006616/0.1096, allocations: 2.781 MB / 383 MB, free: 11.71 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.373490251018666]