Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001345/0.001345, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001463/0.001463, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2429/0.2429, allocations: 46.94 MB / 360.9 MB, free: 4.285 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.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00233/0.00233, allocations: 67.91 kB / 0.4961 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3179, allocations: 66.03 MB / 0.5606 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001827/0.3198, allocations: 499.9 kB / 0.5611 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002777/0.3225, allocations: 1.374 MB / 0.5624 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.417e-05/0.3226, allocations: 0 / 0.5624 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.849e-05/0.3226, allocations: 0 / 0.5624 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.3229, allocations: 8 kB / 0.5624 GB, free: 2.617 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487: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.001881/0.3248, allocations: 259.2 kB / 0.5627 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.3248, allocations: 7.984 kB / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.3249, allocations: 0 / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.223e-05/0.3249, allocations: 0 / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.325, allocations: 11.94 kB / 0.5627 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.325, allocations: 0 / 0.5627 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004628/0.3296, allocations: 0.7463 MB / 0.5634 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.3296, allocations: 0 / 0.5634 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.157e-05/0.3297, allocations: 3.984 kB / 0.5634 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.3301, allocations: 189.5 kB / 0.5636 GB, free: 1.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3301, allocations: 0 / 0.5636 GB, free: 1.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3301, allocations: 0 / 0.5636 GB, free: 1.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3301, allocations: 0 / 0.5636 GB, free: 1.539 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.0004942/0.3306, allocations: 311.7 kB / 0.5639 GB, free: 1.199 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3307, allocations: 12.03 kB / 0.5639 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.3307, allocations: 30.75 kB / 0.564 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.3308, allocations: 4.875 kB / 0.564 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.3309, allocations: 102.5 kB / 0.5641 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.3309, allocations: 8.375 kB / 0.5641 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.3309, allocations: 384 / 0.5641 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.499e-05/0.331, allocations: 37.56 kB / 0.5641 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.331, allocations: 0 / 0.5641 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.331, allocations: 4 kB / 0.5641 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.331, allocations: 0 / 0.5641 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.082e-05/0.331, allocations: 7.922 kB / 0.5641 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.3312, allocations: 124.8 kB / 0.5642 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.404e-05/0.3313, allocations: 18.58 kB / 0.5643 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.607e-05/0.3313, allocations: 4.922 kB / 0.5643 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.3313, allocations: 7.938 kB / 0.5643 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.3313, allocations: 60.2 kB / 0.5643 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.3313, allocations: 0 / 0.5643 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002005/0.3315, allocations: 67.39 kB / 0.5644 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.3316, allocations: 81.11 kB / 0.5645 GB, free: 0.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.143e-05/0.3317, allocations: 93.98 kB / 0.5646 GB, free: 408 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.3317, allocations: 25.7 kB / 0.5646 GB, free: 376 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/0.3317, allocations: 88.14 kB / 0.5647 GB, free: 284 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.3318, allocations: 3.984 kB / 0.5647 GB, free: 280 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.3318, allocations: 9.719 kB / 0.5647 GB, free: 264 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3319, allocations: 314.8 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.332, allocations: 4 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-06/0.332, allocations: 0 / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.38e-05/0.332, allocations: 76.39 kB / 0.5651 GB, free: 15.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.332, allocations: 0 / 0.5651 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.946e-05/0.3321, allocations: 67.3 kB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.3322, allocations: 37.69 kB / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3322, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3322, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.3322, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.3322, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.3322, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.3322, allocations: 4.031 kB / 0.5652 GB, free: 15.72 MB / 414.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.0001139/0.3324, allocations: 135.5 kB / 0.5653 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.3324, allocations: 7.875 kB / 0.5653 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/0.3324, allocations: 7.156 kB / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.3324, allocations: 3.984 kB / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3324, allocations: 4 kB / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3324, allocations: 0 / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.3325, allocations: 112.8 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3325, allocations: 3.938 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-06/0.3325, allocations: 11.94 kB / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3325, allocations: 0 / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3325, allocations: 0 / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.3325, allocations: 3.984 kB / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3325, allocations: 0 / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.3327, allocations: 86.84 kB / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.3327, allocations: 7.938 kB / 0.5655 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.3327, allocations: 7.922 kB / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.436e-05/0.3327, allocations: 4.031 kB / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.399e-05/0.3327, allocations: 0 / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3327, allocations: 0 / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.63e-05/0.3328, allocations: 83.28 kB / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3328, allocations: 0 / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003893/0.3332, allocations: 63.8 kB / 0.5657 GB, free: 15.1 MB / 414.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.001375/0.3346, allocations: 0.8637 MB / 0.5665 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.3347, allocations: 55.41 kB / 0.5666 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3347, allocations: 0 / 0.5666 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.751e-05/0.3348, allocations: 55.41 kB / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.3349, allocations: 7.984 kB / 0.5666 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004751/0.3354, allocations: 138.5 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.3357, allocations: 0.6807 MB / 0.5674 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.127e-05/0.3357, allocations: 0 / 0.5674 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.3358, allocations: 15.42 kB / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3358, allocations: 0 / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.3691, allocations: 2.662 MB / 0.5701 GB, free: 10.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.61, allocations: 2.812 kB / 0.5701 GB, free: 10.71 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.499711045064032]