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.001877/0.001877, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002309/0.002309, allocations: 208.9 kB / 23.73 MB, free: 4.387 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.2198/0.2198, allocations: 44.94 MB / 358.8 MB, free: 6.066 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003296/0.003296, allocations: 73.59 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3309, allocations: 65.48 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001667/0.3326, allocations: 485.3 kB / 0.5574 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.3351, allocations: 1.346 MB / 0.5587 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.083e-05/0.3351, allocations: 0 / 0.5587 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.332e-05/0.3351, allocations: 0 / 0.5587 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.3353, allocations: 15.98 kB / 0.5587 GB, free: 5.703 MB / 398.1 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.001291/0.3366, allocations: 257.2 kB / 0.559 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.869e-05/0.3367, allocations: 15.92 kB / 0.559 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.879e-05/0.3367, allocations: 3.984 kB / 0.559 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.03e-05/0.3367, allocations: 4 kB / 0.559 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.876e-05/0.3368, allocations: 7.938 kB / 0.559 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.3368, allocations: 0 / 0.559 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0043/0.3411, allocations: 0.7114 MB / 0.5597 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.3411, allocations: 0 / 0.5597 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.3411, allocations: 4 kB / 0.5597 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.3415, allocations: 181.6 kB / 0.5599 GB, free: 4.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3415, allocations: 4 kB / 0.5599 GB, free: 4.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3415, allocations: 0 / 0.5599 GB, free: 4.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.3415, allocations: 0 / 0.5599 GB, free: 4.656 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.0004271/0.3419, allocations: 315.6 kB / 0.5602 GB, free: 4.312 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.342, allocations: 8.031 kB / 0.5602 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.427e-05/0.342, allocations: 34.69 kB / 0.5602 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.396e-05/0.342, allocations: 0.9375 kB / 0.5602 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.3421, allocations: 110.5 kB / 0.5603 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3422, allocations: 4.375 kB / 0.5603 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.3422, allocations: 384 / 0.5603 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.909e-05/0.3423, allocations: 63.33 kB / 0.5604 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.3423, allocations: 0 / 0.5604 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.3423, allocations: 0 / 0.5604 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3423, allocations: 0 / 0.5604 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.3423, allocations: 33.64 kB / 0.5604 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001313/0.3425, allocations: 120.7 kB / 0.5606 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.33e-05/0.3425, allocations: 48.3 kB / 0.5606 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.145e-05/0.3425, allocations: 30.56 kB / 0.5606 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.3426, allocations: 12 kB / 0.5606 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.3426, allocations: 56.27 kB / 0.5607 GB, free: 3.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3426, allocations: 0 / 0.5607 GB, free: 3.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001955/0.3428, allocations: 126.7 kB / 0.5608 GB, free: 3.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.3429, allocations: 77.11 kB / 0.5609 GB, free: 3.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.3429, allocations: 97.86 kB / 0.561 GB, free: 3.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3429, allocations: 25.7 kB / 0.561 GB, free: 3.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.343, allocations: 80.14 kB / 0.5611 GB, free: 3.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.343, allocations: 0 / 0.5611 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.343, allocations: 17.95 kB / 0.5611 GB, free: 3.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3432, allocations: 314.8 kB / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.349e-05/0.3432, allocations: 25.7 kB / 0.5614 GB, free: 2.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.57e-05/0.3432, allocations: 29.7 kB / 0.5615 GB, free: 2.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.133e-05/0.3433, allocations: 64.27 kB / 0.5615 GB, free: 2.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3433, allocations: 0 / 0.5615 GB, free: 2.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.667e-05/0.3434, allocations: 100.9 kB / 0.5616 GB, free: 2.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.3434, allocations: 29.7 kB / 0.5616 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.3434, allocations: 0 / 0.5616 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3434, allocations: 4 kB / 0.5616 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3434, allocations: 4.094 kB / 0.5616 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.3434, allocations: 0 / 0.5616 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.3434, allocations: 0 / 0.5616 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.3434, allocations: 0 / 0.5616 GB, free: 2.562 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 9.279e-05/0.3435, allocations: 147.5 kB / 0.5618 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.3435, allocations: 7.938 kB / 0.5618 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.142e-05/0.3436, allocations: 3.156 kB / 0.5618 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3436, allocations: 0 / 0.5618 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3436, allocations: 4 kB / 0.5618 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.3436, allocations: 0 / 0.5618 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.838e-05/0.3437, allocations: 116.8 kB / 0.5619 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3437, allocations: 7.938 kB / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.455e-06/0.3437, allocations: 4 kB / 0.5619 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3437, allocations: 0 / 0.5619 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.3437, allocations: 0 / 0.5619 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3437, allocations: 0 / 0.5619 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3437, allocations: 0 / 0.5619 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.3438, allocations: 128.5 kB / 0.562 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-06/0.3438, allocations: 7.922 kB / 0.5621 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.3438, allocations: 3.938 kB / 0.5621 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.3438, allocations: 0 / 0.5621 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/0.3439, allocations: 8.031 kB / 0.5621 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3439, allocations: 0 / 0.5621 GB, free: 2.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.836e-05/0.3439, allocations: 75.28 kB / 0.5621 GB, free: 1.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3439, allocations: 0 / 0.5621 GB, free: 1.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.3442, allocations: 63.8 kB / 0.5622 GB, free: 1.902 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.001137/0.3453, allocations: 0.8951 MB / 0.5631 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.3455, allocations: 122.7 kB / 0.5632 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3455, allocations: 0 / 0.5632 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.367e-05/0.3455, allocations: 85.17 kB / 0.5633 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.3456, allocations: 4 kB / 0.5633 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.346, allocations: 164.2 kB / 0.5634 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.717e-05/0.346, allocations: 59.3 kB / 0.5635 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.394e-06/0.3461, allocations: 0 / 0.5635 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.396e-05/0.3461, allocations: 7.438 kB / 0.5635 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3461, allocations: 0 / 0.5635 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.3766, allocations: 3.088 MB / 0.5665 GB, free: 13.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.83, allocations: 4.891 kB / 0.5665 GB, free: 13.55 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.643576294183731]