Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001686/0.001686, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.002086/0.002086, allocations: 209.6 kB / 20.75 MB, free: 2.293 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.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2306/0.2306, allocations: 44.91 MB / 355.1 MB, free: 12.31 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.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",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.002047/0.002047, allocations: 67.89 kB / 499.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1288, allocations: 65.42 MB / 0.5517 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001806/0.1306, allocations: 489 kB / 0.5522 GB, free: 9.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007854/0.1314, allocations: 263.6 kB / 0.5524 GB, free: 9.422 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.107e-05/0.1314, allocations: 0 / 0.5524 GB, free: 9.422 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.1314, allocations: 0 / 0.5524 GB, free: 9.422 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.805e-06/0.1314, allocations: 3.938 kB / 0.5524 GB, free: 9.418 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.0005318/0.132, allocations: 51.77 kB / 0.5525 GB, free: 9.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 8.189e-05/0.1321, allocations: 4 kB / 0.5525 GB, free: 9.363 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.713e-05/0.1321, allocations: 3.984 kB / 0.5525 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.223e-05/0.1321, allocations: 0 / 0.5525 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.971e-05/0.1322, allocations: 7.984 kB / 0.5525 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.768e-06/0.1322, allocations: 0 / 0.5525 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.1324, allocations: 67.95 kB / 0.5526 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.1324, allocations: 0 / 0.5526 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.1324, allocations: 0 / 0.5526 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.1326, allocations: 52.14 kB / 0.5526 GB, free: 9.234 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1326, allocations: 4 kB / 0.5526 GB, free: 9.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1326, allocations: 3.938 kB / 0.5526 GB, free: 9.227 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1326, allocations: 4 kB / 0.5526 GB, free: 9.223 MB / 414.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.0004306/0.133, allocations: 357.1 kB / 0.553 GB, free: 8.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1331, allocations: 8.031 kB / 0.553 GB, free: 8.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.1331, allocations: 30.75 kB / 0.553 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.1331, allocations: 0.9375 kB / 0.553 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.1333, allocations: 168.3 kB / 0.5532 GB, free: 8.566 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.1333, allocations: 4.375 kB / 0.5532 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.1333, allocations: 384 / 0.5532 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.772e-05/0.1334, allocations: 30.27 kB / 0.5532 GB, free: 8.527 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1334, allocations: 7.938 kB / 0.5532 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.1334, allocations: 0 / 0.5532 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1334, allocations: 4 kB / 0.5532 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.963e-05/0.1334, allocations: 0 / 0.5532 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.1336, allocations: 141.7 kB / 0.5534 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.194e-05/0.1336, allocations: 26.53 kB / 0.5534 GB, free: 8.293 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.1336, allocations: 4.859 kB / 0.5534 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.1337, allocations: 0 / 0.5534 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.077e-05/0.1337, allocations: 64.33 kB / 0.5534 GB, free: 8.207 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1337, allocations: 4 kB / 0.5535 GB, free: 8.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001913/0.1339, allocations: 67.33 kB / 0.5535 GB, free: 8.125 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.134, allocations: 77.11 kB / 0.5536 GB, free: 8.031 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.134, allocations: 93.81 kB / 0.5537 GB, free: 7.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.134, allocations: 25.7 kB / 0.5537 GB, free: 7.898 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.627e-05/0.1341, allocations: 81.88 kB / 0.5538 GB, free: 7.816 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.1341, allocations: 4 kB / 0.5538 GB, free: 7.812 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.1341, allocations: 21.59 kB / 0.5538 GB, free: 7.785 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1343, allocations: 315 kB / 0.5541 GB, free: 7.469 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.306e-05/0.1343, allocations: 4 kB / 0.5541 GB, free: 7.465 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-06/0.1343, allocations: 0 / 0.5541 GB, free: 7.465 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.079e-05/0.1344, allocations: 64.25 kB / 0.5542 GB, free: 7.387 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1344, allocations: 3.938 kB / 0.5542 GB, free: 7.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.135e-05/0.1345, allocations: 63.41 kB / 0.5542 GB, free: 7.309 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.888e-05/0.1345, allocations: 29.7 kB / 0.5543 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.1345, allocations: 8.031 kB / 0.5543 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1345, allocations: 4 kB / 0.5543 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1345, allocations: 0 / 0.5543 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1345, allocations: 0 / 0.5543 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.1345, allocations: 3.938 kB / 0.5543 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.1346, allocations: 3.984 kB / 0.5543 GB, free: 7.254 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.0001063/0.1347, allocations: 137.7 kB / 0.5544 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.976e-06/0.1347, allocations: 0 / 0.5544 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.1347, allocations: 7.062 kB / 0.5544 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1347, allocations: 4 kB / 0.5544 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1347, allocations: 0 / 0.5544 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1347, allocations: 0 / 0.5544 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.1348, allocations: 157.7 kB / 0.5546 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1348, allocations: 0 / 0.5546 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1348, allocations: 0 / 0.5546 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1348, allocations: 0 / 0.5546 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.1348, allocations: 3.938 kB / 0.5546 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1348, allocations: 4 kB / 0.5546 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1348, allocations: 0 / 0.5546 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.135, allocations: 90.83 kB / 0.5547 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.135, allocations: 81.05 kB / 0.5547 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.135, allocations: 7.938 kB / 0.5548 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.058e-05/0.135, allocations: 0 / 0.5548 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.933e-05/0.135, allocations: 3.938 kB / 0.5548 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.1351, allocations: 0 / 0.5548 GB, free: 6.664 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.367e-05/0.1351, allocations: 75.28 kB / 0.5548 GB, free: 6.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1351, allocations: 0 / 0.5548 GB, free: 6.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002358/0.1353, allocations: 31.95 kB / 0.5549 GB, free: 6.559 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.001107/0.1364, allocations: 0.7983 MB / 0.5556 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.1365, allocations: 55.41 kB / 0.5557 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1366, allocations: 4 kB / 0.5557 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.462e-05/0.1366, allocations: 63.39 kB / 0.5558 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.1367, allocations: 8.062 kB / 0.5558 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.1371, allocations: 114.7 kB / 0.5559 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.1374, allocations: 0.6768 MB / 0.5565 GB, free: 4.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.792e-06/0.1374, allocations: 0 / 0.5565 GB, free: 4.789 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.1374, allocations: 7.438 kB / 0.5565 GB, free: 4.781 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1374, allocations: 0 / 0.5565 GB, free: 4.781 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.163, allocations: 1.628 MB / 0.5581 GB, free: 3.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.39/8.553, allocations: 3 kB / 0.5581 GB, free: 3.227 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 11.633627350907773]