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.001403/0.001403, 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.001516/0.001516, allocations: 207.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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2253/0.2253, allocations: 46.97 MB / 360.9 MB, free: 4.031 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.0021/0.0021, allocations: 67.89 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3273, allocations: 66.04 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001491/0.3287, allocations: 481.1 kB / 0.561 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006456/0.3294, allocations: 265.5 kB / 0.5613 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.3294, allocations: 0 / 0.5613 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.366e-05/0.3294, allocations: 4 kB / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.109e-06/0.3294, allocations: 0 / 0.5613 GB, free: 3.496 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.000294/0.3297, allocations: 51.81 kB / 0.5613 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.485e-05/0.3298, allocations: 4 kB / 0.5613 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.809e-05/0.3298, allocations: 3.938 kB / 0.5613 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.369e-05/0.3298, allocations: 3.938 kB / 0.5613 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.299e-05/0.3299, allocations: 3.984 kB / 0.5614 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-06/0.3299, allocations: 0 / 0.5614 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.33, allocations: 67.95 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.392e-06/0.33, allocations: 0 / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.33, allocations: 0 / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.3302, allocations: 55.72 kB / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.3302, allocations: 0 / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3302, allocations: 4 kB / 0.5615 GB, free: 3.309 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.3302, allocations: 0 / 0.5615 GB, free: 3.309 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.0003797/0.3305, allocations: 285.9 kB / 0.5617 GB, free: 2.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.3306, allocations: 8.031 kB / 0.5618 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.3306, allocations: 38.69 kB / 0.5618 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.318e-05/0.3306, allocations: 4.938 kB / 0.5618 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.978e-05/0.3307, allocations: 106.5 kB / 0.5619 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.3307, allocations: 384 / 0.5619 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.3307, allocations: 384 / 0.5619 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.321e-05/0.3308, allocations: 59.97 kB / 0.562 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3308, allocations: 3.938 kB / 0.562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.3308, allocations: 0 / 0.562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3309, allocations: 0 / 0.562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.211e-05/0.3309, allocations: 33.7 kB / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.331, allocations: 116.8 kB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.343e-05/0.3311, allocations: 48.25 kB / 0.5621 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.919e-05/0.3311, allocations: 30.56 kB / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.3311, allocations: 64 / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.247e-05/0.3312, allocations: 64.27 kB / 0.5622 GB, free: 2.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3312, allocations: 4 kB / 0.5622 GB, free: 2.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002005/0.3314, allocations: 122.7 kB / 0.5624 GB, free: 2.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.3314, allocations: 77.11 kB / 0.5624 GB, free: 2.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.111e-05/0.3315, allocations: 97.81 kB / 0.5625 GB, free: 2.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3315, allocations: 29.7 kB / 0.5626 GB, free: 1.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.3316, allocations: 80.14 kB / 0.5626 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.3316, allocations: 0 / 0.5626 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.3316, allocations: 9.719 kB / 0.5626 GB, free: 1.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3317, allocations: 314.8 kB / 0.5629 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.639e-05/0.3318, allocations: 29.69 kB / 0.563 GB, free: 1.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.158e-05/0.3318, allocations: 29.83 kB / 0.563 GB, free: 1.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.088e-05/0.3318, allocations: 64.27 kB / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3318, allocations: 0 / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.926e-05/0.3319, allocations: 93.03 kB / 0.5631 GB, free: 1.301 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.266e-05/0.332, allocations: 37.64 kB / 0.5632 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.332, allocations: 7.875 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.332, allocations: 0 / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.332, allocations: 0 / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.332, allocations: 0 / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.332, allocations: 4.094 kB / 0.5632 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.332, allocations: 0 / 0.5632 GB, free: 1.246 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.136e-05/0.3321, allocations: 139.5 kB / 0.5633 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/0.3321, allocations: 0 / 0.5633 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.3321, allocations: 10.92 kB / 0.5633 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.3321, allocations: 4 kB / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3321, allocations: 0 / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.3321, allocations: 0 / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.3323, allocations: 112.8 kB / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3323, allocations: 0 / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3323, allocations: 0 / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3323, allocations: 8 kB / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.3323, allocations: 3.938 kB / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3323, allocations: 0 / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.3323, allocations: 0 / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.3324, allocations: 124.5 kB / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-06/0.3324, allocations: 0 / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3324, allocations: 11.92 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-06/0.3324, allocations: 0 / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.3325, allocations: 3.984 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.3325, allocations: 4 kB / 0.5636 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.3325, allocations: 79.31 kB / 0.5637 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3325, allocations: 0 / 0.5637 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.3327, allocations: 19.94 kB / 0.5637 GB, free: 0.6445 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.001037/0.3337, allocations: 0.8482 MB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.3339, allocations: 118.7 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.3339, allocations: 0 / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.625e-05/0.3339, allocations: 89.09 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.3341, allocations: 0 / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003163/0.3344, allocations: 152.5 kB / 0.5649 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.861e-05/0.3345, allocations: 51.36 kB / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.445e-06/0.3345, allocations: 7.984 kB / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.397e-05/0.3345, allocations: 7.438 kB / 0.5649 GB, free: 15.31 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3345, allocations: 0 / 0.5649 GB, free: 15.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.3617, allocations: 2.15 MB / 0.567 GB, free: 13.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.52, allocations: 3.984 kB / 0.567 GB, free: 13.29 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.422151805832982]