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.001759/0.001759, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001519/0.001519, allocations: 207.4 kB / 23.73 MB, free: 4.379 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.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2307/0.2307, allocations: 46.96 MB / 360.9 MB, free: 4.051 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.002264/0.002264, allocations: 71.89 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3049, allocations: 66.03 MB / 0.5606 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001674/0.3066, allocations: 0.4921 MB / 0.561 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002185/0.3088, allocations: 1.339 MB / 0.5624 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.213e-05/0.3088, allocations: 0 / 0.5624 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.3088, allocations: 0 / 0.5624 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.309, allocations: 15.98 kB / 0.5624 GB, free: 2.352 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.001053/0.3101, allocations: 265.8 kB / 0.5626 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.653e-05/0.3101, allocations: 4 kB / 0.5626 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.815e-05/0.3101, allocations: 7.984 kB / 0.5626 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.79e-05/0.3102, allocations: 3.938 kB / 0.5626 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.45e-05/0.3102, allocations: 8 kB / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.3102, allocations: 0 / 0.5626 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004209/0.3144, allocations: 0.7263 MB / 0.5634 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.816e-06/0.3144, allocations: 0 / 0.5634 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.3145, allocations: 0 / 0.5634 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.3148, allocations: 185.5 kB / 0.5635 GB, free: 1.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3148, allocations: 0 / 0.5635 GB, free: 1.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3148, allocations: 4 kB / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.3148, allocations: 0 / 0.5635 GB, free: 1.289 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.0003923/0.3152, allocations: 315.6 kB / 0.5638 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3152, allocations: 8.031 kB / 0.5638 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.3153, allocations: 38.75 kB / 0.5639 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.302e-05/0.3153, allocations: 0.9375 kB / 0.5639 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.632e-05/0.3154, allocations: 102.5 kB / 0.564 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3154, allocations: 384 / 0.564 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.3154, allocations: 4.375 kB / 0.564 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.41e-05/0.3155, allocations: 59.33 kB / 0.564 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.3155, allocations: 4 kB / 0.564 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-06/0.3155, allocations: 0 / 0.564 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3155, allocations: 0 / 0.564 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.019e-05/0.3155, allocations: 29.64 kB / 0.5641 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.3157, allocations: 124.8 kB / 0.5642 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.066e-05/0.3157, allocations: 48.3 kB / 0.5642 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.678e-05/0.3158, allocations: 34.5 kB / 0.5643 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.3158, allocations: 3.938 kB / 0.5643 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.3158, allocations: 68.33 kB / 0.5643 GB, free: 304 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.705e-06/0.3158, allocations: 3.984 kB / 0.5643 GB, free: 300 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001875/0.316, allocations: 118.7 kB / 0.5645 GB, free: 156 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.3161, allocations: 77.11 kB / 0.5645 GB, free: 60 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.793e-05/0.3161, allocations: 98.08 kB / 0.5646 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.3162, allocations: 29.73 kB / 0.5647 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.3162, allocations: 80.14 kB / 0.5647 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.3162, allocations: 4 kB / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.3162, allocations: 13.7 kB / 0.5647 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3164, allocations: 314.8 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.579e-05/0.3164, allocations: 29.7 kB / 0.5651 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.949e-05/0.3164, allocations: 25.7 kB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.635e-05/0.3165, allocations: 60.27 kB / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3165, allocations: 0 / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001144/0.3166, allocations: 109 kB / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.3166, allocations: 33.7 kB / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.3166, allocations: 0 / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.3166, allocations: 3.938 kB / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3166, allocations: 0 / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.3166, allocations: 0 / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.3167, allocations: 4 kB / 0.5653 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.3167, allocations: 0 / 0.5653 GB, free: 15.18 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 9.255e-05/0.3168, allocations: 135.5 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.3168, allocations: 7.938 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/0.3168, allocations: 7.188 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3168, allocations: 0 / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3168, allocations: 0 / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3168, allocations: 0 / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.3169, allocations: 124.8 kB / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3169, allocations: 3.938 kB / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3169, allocations: 0 / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3169, allocations: 0 / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.3169, allocations: 0 / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3169, allocations: 4 kB / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3169, allocations: 0 / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.317, allocations: 124.5 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-06/0.317, allocations: 3.938 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3171, allocations: 4 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.186e-05/0.3171, allocations: 0 / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.3171, allocations: 0 / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.3171, allocations: 3.938 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.105e-05/0.3171, allocations: 79.28 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3171, allocations: 0 / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.3174, allocations: 67.8 kB / 0.5658 GB, free: 14.54 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.001133/0.3186, allocations: 0.9015 MB / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.3187, allocations: 118.8 kB / 0.5668 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3187, allocations: 0 / 0.5668 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.131e-05/0.3188, allocations: 81.11 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.3189, allocations: 0 / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003843/0.3193, allocations: 164.2 kB / 0.5671 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.559e-05/0.3193, allocations: 59.3 kB / 0.5671 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.117e-06/0.3193, allocations: 4 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.763e-05/0.3194, allocations: 7.438 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3194, allocations: 4.125 kB / 0.5671 GB, free: 13.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.3498, allocations: 3.11 MB / 0.5702 GB, free: 10.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.4, allocations: 6.812 kB / 0.5702 GB, free: 10.16 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.208383897988824]