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.0009251/0.0009251, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.0009669/0.0009669, allocations: 165 kB / 24.56 MB, free: 12 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.9602/0.9602, allocations: 177.1 MB / 205 MB, free: 5.621 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.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 1.774e-06/1.774e-06, allocations: 0 / 272.9 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.539e-05/2.716e-05, allocations: 6.312 kB / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002284/0.002312, allocations: 1.241 MB / 274.2 MB, free: 336 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003055/0.005367, allocations: 2.165 MB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.542e-05/0.005392, allocations: 0 / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.542e-05/0.005418, allocations: 3.938 kB / 276.3 MB, free: 14.15 MB / 266.7 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.001402/0.00682, allocations: 478.2 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.938e-05/0.006849, allocations: 4 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.802e-05/0.006918, allocations: 15.86 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.438e-05/0.006962, allocations: 4 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.692e-05/0.007009, allocations: 11.98 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.007119, allocations: 7.938 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.007134, allocations: 0 / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000844/0.007978, allocations: 487.3 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.477e-05/0.007993, allocations: 0 / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.665e-05/0.00802, allocations: 11.94 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006775/0.008697, allocations: 462.9 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.008701, allocations: 4 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.008702, allocations: 0 / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.008707, allocations: 0 / 277.8 MB, free: 12.69 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005026/0.00921, allocations: 455.6 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.009265, allocations: 12.03 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.865e-05/0.009354, allocations: 120.1 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.009533, allocations: 231.8 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.074e-05/0.009614, allocations: 238.8 kB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.009688, allocations: 242.8 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.148e-05/0.00978, allocations: 149.4 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.009823, allocations: 123.1 kB / 279.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.958e-05/0.009912, allocations: 246.4 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.264e-05/0.009995, allocations: 238.4 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.452e-05/0.01007, allocations: 246.3 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003162/0.01039, allocations: 0.5681 MB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.01051, allocations: 265.4 kB / 280.9 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.617e-05/0.01056, allocations: 126.9 kB / 281 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.0106, allocations: 119.2 kB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001403/0.01074, allocations: 57 kB / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 3.436e-06/0.01074, allocations: 0 / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001861/0.01092, allocations: 41.64 kB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.01098, allocations: 51.41 kB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.01109, allocations: 161.9 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.0111, allocations: 25.7 kB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.004e-05/0.01116, allocations: 130.9 kB / 281.6 MB, free: 8.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.01118, allocations: 3.953 kB / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.01122, allocations: 19.38 kB / 281.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.01136, allocations: 496.1 kB / 282.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.01137, allocations: 0 / 282.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.906e-06/0.01138, allocations: 7.984 kB / 282.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.205e-05/0.01141, allocations: 15.88 kB / 282.1 MB, free: 8.168 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.01141, allocations: 0 / 282.1 MB, free: 8.168 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.394e-05/0.01148, allocations: 33.7 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.0115, allocations: 4 kB / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.0115, allocations: 11.92 kB / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.01152, allocations: 0 / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.808e-05/0.01155, allocations: 0 / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.01155, allocations: 3.938 kB / 282.2 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.272e-05/0.01158, allocations: 4 kB / 282.2 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.01158, allocations: 0 / 282.2 MB, free: 8.105 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: 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.112e-05/0.01167, allocations: 160.6 kB / 282.3 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.01168, allocations: 4.188 kB / 282.3 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.679e-05/0.01171, allocations: 11.08 kB / 282.3 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.01172, allocations: 0 / 282.3 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.01172, allocations: 0 / 282.3 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.01172, allocations: 3.938 kB / 282.3 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.01183, allocations: 116.6 kB / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01183, allocations: 0 / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.048e-06/0.01184, allocations: 0 / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.01184, allocations: 0 / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.01185, allocations: 0 / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01185, allocations: 7.938 kB / 282.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01185, allocations: 4 kB / 282.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.694e-05/0.01194, allocations: 72.38 kB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.733e-06/0.01194, allocations: 4 kB / 282.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.01196, allocations: 0 / 282.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.01197, allocations: 3.938 kB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.01198, allocations: 0 / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.01198, allocations: 0 / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.954e-05/0.01203, allocations: 127.2 kB / 282.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01203, allocations: 0 / 282.7 MB, free: 7.535 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.01251, allocations: 155.5 kB / 282.8 MB, free: 7.383 MB / 266.7 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.00117/0.01368, allocations: 0.5462 MB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.498e-05/0.01376, allocations: 11.69 kB / 283.4 MB, free: 6.902 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01377, allocations: 8 kB / 283.4 MB, free: 6.895 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.009e-05/0.01378, allocations: 15.67 kB / 283.4 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001619/0.01394, allocations: 7.938 kB / 283.4 MB, free: 6.867 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005006/0.01444, allocations: 118.3 kB / 283.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.549e-05/0.01447, allocations: 51.36 kB / 283.6 MB, free: 6.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.953e-05/0.01451, allocations: 8.047 kB / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.47e-05/0.01454, allocations: 16.5 kB / 283.6 MB, free: 6.629 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.01454, allocations: 0 / 283.6 MB, free: 6.629 MB / 266.7 MB Notification: Performance of Templates: time 0.007933/0.02247, allocations: 3.856 MB / 287.5 MB, free: 2.773 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.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.744272918906063]