Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.001393/0.001393, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001607/0.001607, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.229/0.229, allocations: 46.93 MB / 360.9 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 71.89 kB / 0.4961 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3005, allocations: 66.04 MB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00165/0.3021, allocations: 483.6 kB / 0.5611 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006709/0.3028, allocations: 269.5 kB / 0.5613 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.3028, allocations: 0 / 0.5613 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.19e-05/0.3028, allocations: 0 / 0.5613 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-06/0.3029, allocations: 4 kB / 0.5614 GB, free: 3.723 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.3032, allocations: 55.81 kB / 0.5614 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.794e-05/0.3032, allocations: 0 / 0.5614 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.826e-05/0.3033, allocations: 4 kB / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.284e-05/0.3033, allocations: 0 / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.092e-05/0.3033, allocations: 0 / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.3033, allocations: 0 / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.3035, allocations: 71.92 kB / 0.5615 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.092e-06/0.3035, allocations: 0 / 0.5615 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.178e-05/0.3035, allocations: 4 kB / 0.5615 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.3036, allocations: 59.61 kB / 0.5615 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3036, allocations: 4 kB / 0.5615 GB, free: 3.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3036, allocations: 0 / 0.5615 GB, free: 3.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.3036, allocations: 0 / 0.5615 GB, free: 3.531 MB / 398.1 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.0003744/0.304, allocations: 285.9 kB / 0.5618 GB, free: 3.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3041, allocations: 8.031 kB / 0.5618 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.3041, allocations: 30.75 kB / 0.5619 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.3041, allocations: 0.9375 kB / 0.5619 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.917e-05/0.3042, allocations: 110.5 kB / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3042, allocations: 384 / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-06/0.3042, allocations: 384 / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.08e-05/0.3043, allocations: 38.25 kB / 0.562 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3043, allocations: 3.938 kB / 0.562 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-06/0.3044, allocations: 0 / 0.562 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3044, allocations: 3.984 kB / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.3044, allocations: 0 / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.3045, allocations: 120.7 kB / 0.5621 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.353e-05/0.3046, allocations: 18.58 kB / 0.5621 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.677e-05/0.3046, allocations: 8.859 kB / 0.5621 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-06/0.3046, allocations: 0 / 0.5621 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/0.3047, allocations: 64.36 kB / 0.5622 GB, free: 2.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.3047, allocations: 0 / 0.5622 GB, free: 2.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000189/0.3049, allocations: 71.27 kB / 0.5623 GB, free: 2.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.084e-05/0.3049, allocations: 81.11 kB / 0.5624 GB, free: 2.527 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.177e-05/0.305, allocations: 93.81 kB / 0.5624 GB, free: 2.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.305, allocations: 29.64 kB / 0.5625 GB, free: 2.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.305, allocations: 84.27 kB / 0.5625 GB, free: 2.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.3051, allocations: 0 / 0.5625 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.3051, allocations: 13.72 kB / 0.5626 GB, free: 2.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3052, allocations: 314.8 kB / 0.5629 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.518e-06/0.3052, allocations: 0 / 0.5629 GB, free: 1.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.3053, allocations: 4 kB / 0.5629 GB, free: 1.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.873e-05/0.3053, allocations: 60.27 kB / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3053, allocations: 8.062 kB / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.985e-05/0.3054, allocations: 59.34 kB / 0.563 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.3054, allocations: 37.69 kB / 0.563 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3054, allocations: 3.938 kB / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.3055, allocations: 0 / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.3055, allocations: 0 / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.3055, allocations: 3.984 kB / 0.563 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.3055, allocations: 0 / 0.563 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.3055, allocations: 0 / 0.563 GB, free: 1.762 MB / 398.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 (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.0001056/0.3056, allocations: 143.5 kB / 0.5632 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.3056, allocations: 0 / 0.5632 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.412e-05/0.3056, allocations: 10.94 kB / 0.5632 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3056, allocations: 7.969 kB / 0.5632 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3056, allocations: 4 kB / 0.5632 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3056, allocations: 0 / 0.5632 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.793e-05/0.3057, allocations: 112.8 kB / 0.5633 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3057, allocations: 0 / 0.5633 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3057, allocations: 0 / 0.5633 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3057, allocations: 4 kB / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.3057, allocations: 3.938 kB / 0.5633 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3057, allocations: 4 kB / 0.5633 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3057, allocations: 0 / 0.5633 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.3059, allocations: 94.77 kB / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-06/0.3059, allocations: 0 / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3059, allocations: 3.938 kB / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.3059, allocations: 3.984 kB / 0.5634 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.3059, allocations: 4 kB / 0.5634 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3059, allocations: 4.031 kB / 0.5634 GB, free: 1.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.491e-05/0.3059, allocations: 79.22 kB / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3059, allocations: 0 / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.3062, allocations: 23.94 kB / 0.5635 GB, free: 1.184 MB / 398.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 (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.001016/0.3072, allocations: 0.7927 MB / 0.5643 GB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.3073, allocations: 67.34 kB / 0.5644 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3073, allocations: 0 / 0.5644 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.123e-05/0.3074, allocations: 63.33 kB / 0.5644 GB, free: 276 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.3075, allocations: 8 kB / 0.5644 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003286/0.3078, allocations: 118.6 kB / 0.5645 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.3082, allocations: 0.669 MB / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.3082, allocations: 0 / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.858e-05/0.3082, allocations: 11.44 kB / 0.5652 GB, free: 15.4 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3082, allocations: 4.125 kB / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.3375, allocations: 1.748 MB / 0.5669 GB, free: 13.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.5, allocations: 11.05 kB / 0.5669 GB, free: 13.77 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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: 14.32112441607751]