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.00165/0.00165, allocations: 116.9 kB / 18.41 MB, free: 4.688 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.001639/0.001639, allocations: 190.9 kB / 21.35 MB, free: 1.75 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.454/1.454, allocations: 222.9 MB / 247.1 MB, free: 4.324 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.001526/0.001526, allocations: 40.06 kB / 358.6 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1093, allocations: 49.44 MB / 408.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002444/0.1118, allocations: 1.185 MB / 409.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003241/0.1151, allocations: 1.952 MB / 411.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.1151, allocations: 4 kB / 411.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.081e-05/0.1151, allocations: 0 / 411.2 MB, free: 3.809 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.001257/0.1164, allocations: 438.4 kB / 411.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.853e-05/0.1165, allocations: 3.938 kB / 411.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.076e-05/0.1165, allocations: 8 kB / 411.7 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.1166, allocations: 3.984 kB / 411.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.747e-05/0.1166, allocations: 15.86 kB / 411.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.1167, allocations: 8 kB / 411.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.1167, allocations: 0 / 411.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007405/0.1175, allocations: 475.5 kB / 412.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.1175, allocations: 7.984 kB / 412.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.1175, allocations: 3.938 kB / 412.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005498/0.1181, allocations: 335.2 kB / 412.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1181, allocations: 3.984 kB / 412.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1181, allocations: 3.938 kB / 412.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.1181, allocations: 0 / 412.5 MB, free: 2.531 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.0005242/0.1187, allocations: 410.6 kB / 412.9 MB, free: 2.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1187, allocations: 12.03 kB / 412.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.1188, allocations: 80.2 kB / 413 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.119, allocations: 247.6 kB / 413.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.811e-05/0.1191, allocations: 150.9 kB / 413.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.1192, allocations: 154.7 kB / 413.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.885e-05/0.1192, allocations: 101 kB / 413.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.1193, allocations: 75.28 kB / 413.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1194, allocations: 158.6 kB / 413.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.558e-05/0.1194, allocations: 158.5 kB / 414 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.943e-05/0.1195, allocations: 154.6 kB / 414.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003196/0.1198, allocations: 445.9 kB / 414.6 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.701e-05/0.1199, allocations: 173.1 kB / 414.8 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.39e-05/0.12, allocations: 88.08 kB / 414.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.12, allocations: 75.28 kB / 414.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.1202, allocations: 47.34 kB / 415 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/0.1202, allocations: 0 / 415 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001399/0.1204, allocations: 37.69 kB / 415 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.1204, allocations: 55.53 kB / 415.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.1205, allocations: 109.8 kB / 415.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1205, allocations: 25.7 kB / 415.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.1206, allocations: 80.14 kB / 415.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.1206, allocations: 0 / 415.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.1207, allocations: 17.7 kB / 415.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.1209, allocations: 314.8 kB / 415.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-06/0.1209, allocations: 0 / 415.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.662e-06/0.1209, allocations: 8 kB / 415.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.982e-05/0.1209, allocations: 8.859 kB / 415.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1209, allocations: 0 / 415.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.363e-05/0.121, allocations: 33.64 kB / 415.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.121, allocations: 8 kB / 415.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.121, allocations: 3.984 kB / 415.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.121, allocations: 0 / 415.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.806e-05/0.1211, allocations: 3.938 kB / 415.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1211, allocations: 4.094 kB / 415.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.888e-05/0.1211, allocations: 0 / 415.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1211, allocations: 0 / 415.7 MB, free: 15.12 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 0.0001127/0.1213, allocations: 117.8 kB / 415.8 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.1213, allocations: 3.953 kB / 415.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.1213, allocations: 7.125 kB / 415.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1213, allocations: 3.938 kB / 415.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1213, allocations: 0 / 415.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1213, allocations: 3.984 kB / 415.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.1215, allocations: 149.6 kB / 415.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1215, allocations: 4 kB / 415.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.1215, allocations: 0 / 415.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1215, allocations: 0 / 415.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1215, allocations: 3.984 kB / 415.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1215, allocations: 3.938 kB / 416 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1215, allocations: 0 / 416 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.842e-05/0.1216, allocations: 65.02 kB / 416 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.1217, allocations: 81.14 kB / 416.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1217, allocations: 3.984 kB / 416.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.1217, allocations: 0 / 416.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.131e-05/0.1217, allocations: 0 / 416.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1217, allocations: 4 kB / 416.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.106e-05/0.1218, allocations: 83.28 kB / 416.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1218, allocations: 0 / 416.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005327/0.1223, allocations: 127.6 kB / 416.3 MB, free: 14.38 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.001166/0.1235, allocations: 496.1 kB / 416.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.277e-05/0.1236, allocations: 4 kB / 416.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1236, allocations: 4.062 kB / 416.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.875e-06/0.1236, allocations: 4 kB / 416.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.1238, allocations: 3.938 kB / 416.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000276/0.1241, allocations: 140.3 kB / 416.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.1244, allocations: 0.6766 MB / 417.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.731e-05/0.1244, allocations: 11.44 kB / 417.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1244, allocations: 0 / 417.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Templates: time 0.005911/0.1303, allocations: 3.099 MB / 420.7 MB, free: 9.961 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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.097031545941718]