Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.001304/0.001304, allocations: 77.97 kB / 21.42 MB, free: 3.07 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.001422/0.001422, allocations: 169.6 kB / 24.82 MB, free: 9.32 MB / 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 1.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2744/0.2744, allocations: 32.81 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 376.4 MB, free: 4.469 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.392e-05, allocations: 6.25 kB / 376.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001476/0.0015, allocations: 0.4931 MB / 376.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.004525, allocations: 1.387 MB / 378.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.499e-05/0.00456, allocations: 0 / 378.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.004584, allocations: 0 / 378.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.004831, allocations: 23.84 kB / 378.4 MB, free: 2.547 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.005991, allocations: 263.1 kB / 378.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.112e-05/0.006052, allocations: 4 kB / 378.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.006091, allocations: 0 / 378.6 MB, free: 2.293 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.01e-05/0.006131, allocations: 7.984 kB / 378.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.006176, allocations: 0 / 378.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.006186, allocations: 0 / 378.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.008511, allocations: 0.9977 MB / 379.6 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.659e-05/0.008528, allocations: 0 / 379.6 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.648e-05/0.008544, allocations: 4 kB / 379.6 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.008803, allocations: 215.4 kB / 379.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.008805, allocations: 0 / 379.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.008806, allocations: 0 / 379.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.008813, allocations: 0 / 379.8 MB, free: 1.32 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003505/0.009163, allocations: 417.7 kB / 380.2 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.009206, allocations: 8.031 kB / 380.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.009238, allocations: 9.234 kB / 380.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.209e-05/0.00932, allocations: 104.6 kB / 380.4 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.009331, allocations: 384 / 380.4 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.009338, allocations: 4.312 kB / 380.4 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.14e-05/0.009409, allocations: 59.91 kB / 380.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.009417, allocations: 192 / 380.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.009424, allocations: 4.125 kB / 380.4 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.009432, allocations: 3.984 kB / 380.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.542e-05/0.009447, allocations: 37.69 kB / 380.5 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.48e-05/0.009542, allocations: 93.28 kB / 380.6 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.359e-05/0.009586, allocations: 52.77 kB / 380.6 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2e-05/0.009606, allocations: 37.39 kB / 380.6 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-06/0.009609, allocations: 4.062 kB / 380.7 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.009648, allocations: 63.03 kB / 380.7 MB, free: 292 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.009649, allocations: 0 / 380.7 MB, free: 292 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.009807, allocations: 118.8 kB / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.009843, allocations: 77.11 kB / 380.9 MB, free: 52 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.25e-05/0.009936, allocations: 166 kB / 381.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.836e-06/0.009945, allocations: 25.7 kB / 381.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.474e-05/0.009979, allocations: 126.9 kB / 381.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.009994, allocations: 0 / 381.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/0.01002, allocations: 23.38 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.01014, allocations: 496.1 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.64e-05/0.01016, allocations: 25.7 kB / 381.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.637e-05/0.01018, allocations: 29.7 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.824e-05/0.01022, allocations: 67.02 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01022, allocations: 8.188 kB / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.841e-05/0.01029, allocations: 85.11 kB / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.01031, allocations: 29.7 kB / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.01032, allocations: 4 kB / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.01033, allocations: 0 / 382 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.924e-06/0.01033, allocations: 3.984 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.01034, allocations: 3.938 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-06/0.01035, allocations: 4 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.01035, allocations: 0 / 382 MB, free: 14.88 MB / 362.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 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001204/0.01047, allocations: 186.3 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.029e-06/0.01048, allocations: 4.031 kB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.01049, allocations: 3.156 kB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.01049, allocations: 3.938 kB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.01049, allocations: 3.938 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.0105, allocations: 3.938 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.84e-05/0.01056, allocations: 101.2 kB / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.01056, allocations: 0 / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.01056, allocations: 0 / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.01056, allocations: 0 / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.01056, allocations: 4 kB / 382.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.01057, allocations: 3.984 kB / 382.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.01057, allocations: 4 kB / 382.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.604e-05/0.01066, allocations: 131.8 kB / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-06/0.01067, allocations: 4 kB / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.01068, allocations: 0 / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.428e-06/0.01068, allocations: 0 / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-06/0.01069, allocations: 0 / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.0107, allocations: 4 kB / 382.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.182e-05/0.01074, allocations: 119.2 kB / 382.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01074, allocations: 0 / 382.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001992/0.01094, allocations: 67.86 kB / 382.6 MB, free: 14.17 MB / 362.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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000619/0.01156, allocations: 388.9 kB / 383 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.01169, allocations: 114.5 kB / 383.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01169, allocations: 0 / 383.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.881e-05/0.01173, allocations: 96.78 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.01184, allocations: 7.234 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002042/0.01204, allocations: 116.1 kB / 383.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.677e-05/0.01208, allocations: 51.36 kB / 383.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.147e-06/0.01209, allocations: 8.125 kB / 383.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/0.01214, allocations: 74.19 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01214, allocations: 0 / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of Templates: time 0.003525/0.01567, allocations: 1.905 MB / 385.4 MB, free: 11.4 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.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: 3.1009139800444245]