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.001452/0.001452, allocations: 113.1 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.001586/0.001586, allocations: 217.2 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 8 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.2268/0.2268, allocations: 44.91 MB / 358.8 MB, free: 6.301 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.002212/0.002212, allocations: 63.89 kB / 0.4931 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3094, allocations: 65.47 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001709/0.3111, allocations: 497.4 kB / 0.5575 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.3135, allocations: 1.368 MB / 0.5588 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.146e-05/0.3135, allocations: 0 / 0.5588 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.3135, allocations: 0 / 0.5588 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.3137, allocations: 15.98 kB / 0.5588 GB, free: 5.914 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.001185/0.3149, allocations: 266 kB / 0.5591 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.976e-05/0.315, allocations: 3.984 kB / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.315, allocations: 11.98 kB / 0.5591 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.783e-05/0.315, allocations: 0 / 0.5591 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.124e-05/0.3151, allocations: 8 kB / 0.5591 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-06/0.3151, allocations: 0 / 0.5591 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004152/0.3193, allocations: 0.7407 MB / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-06/0.3193, allocations: 0 / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.3193, allocations: 0 / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.3197, allocations: 185.5 kB / 0.56 GB, free: 4.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3197, allocations: 0 / 0.56 GB, free: 4.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3197, allocations: 0 / 0.56 GB, free: 4.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.3197, allocations: 0 / 0.56 GB, free: 4.84 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.0004394/0.3201, allocations: 317.9 kB / 0.5603 GB, free: 4.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3202, allocations: 8.031 kB / 0.5603 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.3202, allocations: 34.75 kB / 0.5603 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.3202, allocations: 4.938 kB / 0.5604 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.3203, allocations: 106.5 kB / 0.5605 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.3203, allocations: 384 / 0.5605 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.3203, allocations: 4.312 kB / 0.5605 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.469e-05/0.3204, allocations: 37.58 kB / 0.5605 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3204, allocations: 0 / 0.5605 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.3205, allocations: 3.984 kB / 0.5605 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3205, allocations: 0 / 0.5605 GB, free: 4.262 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.932e-05/0.3205, allocations: 4 kB / 0.5605 GB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.3206, allocations: 120.8 kB / 0.5606 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.709e-05/0.3207, allocations: 18.61 kB / 0.5606 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.568e-05/0.3207, allocations: 4.859 kB / 0.5606 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.131e-06/0.3207, allocations: 3.938 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.698e-05/0.3208, allocations: 72.25 kB / 0.5607 GB, free: 3.973 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3208, allocations: 0 / 0.5607 GB, free: 3.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.321, allocations: 67.34 kB / 0.5608 GB, free: 3.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.321, allocations: 77.11 kB / 0.5609 GB, free: 3.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.3211, allocations: 101.8 kB / 0.5609 GB, free: 3.691 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3211, allocations: 25.7 kB / 0.561 GB, free: 3.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.3212, allocations: 80.14 kB / 0.561 GB, free: 3.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.3212, allocations: 0 / 0.561 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.3212, allocations: 13.72 kB / 0.5611 GB, free: 3.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3214, allocations: 315.1 kB / 0.5614 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.3214, allocations: 0 / 0.5614 GB, free: 3.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.997e-06/0.3214, allocations: 4 kB / 0.5614 GB, free: 3.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.09e-05/0.3214, allocations: 72.19 kB / 0.5614 GB, free: 3.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3214, allocations: 0 / 0.5614 GB, free: 3.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.456e-05/0.3215, allocations: 67.3 kB / 0.5615 GB, free: 3.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.3216, allocations: 29.7 kB / 0.5615 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3216, allocations: 0 / 0.5615 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3216, allocations: 96 / 0.5615 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.3216, allocations: 4 kB / 0.5615 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3216, allocations: 4 kB / 0.5615 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.3216, allocations: 3.984 kB / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.3216, allocations: 0 / 0.5615 GB, free: 3.027 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.908e-05/0.3217, allocations: 139.5 kB / 0.5617 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.3217, allocations: 3.938 kB / 0.5617 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.317e-05/0.3217, allocations: 3.156 kB / 0.5617 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3217, allocations: 0 / 0.5617 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3217, allocations: 7.938 kB / 0.5617 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3217, allocations: 0 / 0.5617 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.3219, allocations: 128.7 kB / 0.5618 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3219, allocations: 7.938 kB / 0.5618 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3219, allocations: 0 / 0.5618 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3219, allocations: 0 / 0.5618 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3219, allocations: 4 kB / 0.5618 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3219, allocations: 0 / 0.5618 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3219, allocations: 0 / 0.5618 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.322, allocations: 94.83 kB / 0.5619 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-06/0.322, allocations: 7.938 kB / 0.5619 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.322, allocations: 0 / 0.5619 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.662e-05/0.322, allocations: 4 kB / 0.5619 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-06/0.322, allocations: 0 / 0.5619 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.322, allocations: 0 / 0.5619 GB, free: 2.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.38e-05/0.3221, allocations: 83.27 kB / 0.562 GB, free: 2.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3221, allocations: 4 kB / 0.562 GB, free: 2.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000316/0.3224, allocations: 63.92 kB / 0.5621 GB, free: 2.398 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.001141/0.3236, allocations: 0.854 MB / 0.5629 GB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.845e-05/0.3236, allocations: 63.39 kB / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3237, allocations: 0 / 0.563 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.098e-05/0.3237, allocations: 55.41 kB / 0.563 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.3238, allocations: 12.06 kB / 0.563 GB, free: 1.426 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.3242, allocations: 142.4 kB / 0.5632 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3246, allocations: 0.6728 MB / 0.5638 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.375e-05/0.3246, allocations: 4 kB / 0.5638 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.3246, allocations: 7.438 kB / 0.5638 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3246, allocations: 0 / 0.5638 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3561, allocations: 2.665 MB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.73, allocations: 5.859 kB / 0.5664 GB, free: 14 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.564353538909927]