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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.2469/0.2469, allocations: 44.92 MB / 349.6 MB, free: 1.734 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 58.81 kB / 491.7 MB, free: 30.14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1181, allocations: 64.26 MB / 0.543 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001664/0.1198, allocations: 0.4892 MB / 0.5435 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006516/0.1204, allocations: 247.7 kB / 0.5437 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.214e-05/0.1205, allocations: 0 / 0.5437 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.1205, allocations: 0 / 0.5437 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.1205, allocations: 4 kB / 0.5437 GB, free: 3.406 MB / 398.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.000328/0.1208, allocations: 59.75 kB / 0.5437 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.755e-05/0.1209, allocations: 4 kB / 0.5438 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.859e-05/0.1209, allocations: 0 / 0.5438 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.356e-05/0.1209, allocations: 7.875 kB / 0.5438 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.377e-05/0.1209, allocations: 7.984 kB / 0.5438 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.958e-06/0.121, allocations: 0 / 0.5438 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.1211, allocations: 67.94 kB / 0.5438 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.1211, allocations: 0 / 0.5438 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.973e-05/0.1211, allocations: 0 / 0.5438 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.1213, allocations: 52.16 kB / 0.5439 GB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1213, allocations: 0 / 0.5439 GB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1213, allocations: 3.984 kB / 0.5439 GB, free: 3.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1213, allocations: 4 kB / 0.5439 GB, free: 3.203 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.0003754/0.1216, allocations: 361 kB / 0.5442 GB, free: 2.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1217, allocations: 8.031 kB / 0.5442 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.404e-05/0.1217, allocations: 34.75 kB / 0.5443 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.1218, allocations: 0.9375 kB / 0.5443 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.1219, allocations: 160.4 kB / 0.5444 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.1219, allocations: 384 / 0.5444 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.562e-06/0.1219, allocations: 384 / 0.5444 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.279e-05/0.122, allocations: 34.2 kB / 0.5445 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.122, allocations: 7.938 kB / 0.5445 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.122, allocations: 0 / 0.5445 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.122, allocations: 3.984 kB / 0.5445 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.856e-05/0.122, allocations: 4 kB / 0.5445 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.1222, allocations: 145.7 kB / 0.5446 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.398e-05/0.1222, allocations: 14.58 kB / 0.5446 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.605e-05/0.1223, allocations: 4.859 kB / 0.5446 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.1223, allocations: 4.094 kB / 0.5446 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.53e-05/0.1223, allocations: 64.2 kB / 0.5447 GB, free: 2.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.005e-06/0.1223, allocations: 3.984 kB / 0.5447 GB, free: 2.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.1225, allocations: 71.33 kB / 0.5448 GB, free: 2.102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.1226, allocations: 77.11 kB / 0.5448 GB, free: 2.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.219e-05/0.1226, allocations: 89.86 kB / 0.5449 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.1226, allocations: 25.7 kB / 0.545 GB, free: 1.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.1227, allocations: 80.14 kB / 0.545 GB, free: 1.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.1227, allocations: 4.125 kB / 0.545 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.1227, allocations: 17.72 kB / 0.5451 GB, free: 1.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1229, allocations: 314.8 kB / 0.5454 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.788e-06/0.1229, allocations: 0 / 0.5454 GB, free: 1.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.674e-06/0.1229, allocations: 4 kB / 0.5454 GB, free: 1.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.48e-05/0.1229, allocations: 64.2 kB / 0.5454 GB, free: 1.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1229, allocations: 3.938 kB / 0.5454 GB, free: 1.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.826e-05/0.123, allocations: 67.45 kB / 0.5455 GB, free: 1.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.1231, allocations: 33.7 kB / 0.5455 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1231, allocations: 7.875 kB / 0.5455 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1231, allocations: 0 / 0.5455 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.1231, allocations: 0 / 0.5455 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.868e-06/0.1231, allocations: 0 / 0.5455 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.1231, allocations: 0 / 0.5455 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.1231, allocations: 4 kB / 0.5455 GB, free: 1.238 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.078e-05/0.1232, allocations: 131.5 kB / 0.5457 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1232, allocations: 3.984 kB / 0.5457 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.357e-05/0.1232, allocations: 15.05 kB / 0.5457 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.1232, allocations: 4 kB / 0.5457 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1232, allocations: 0 / 0.5457 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1232, allocations: 4 kB / 0.5457 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.1233, allocations: 141.7 kB / 0.5458 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1233, allocations: 0 / 0.5458 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.1234, allocations: 3.938 kB / 0.5458 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.1234, allocations: 0 / 0.5458 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.1234, allocations: 7.938 kB / 0.5458 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1234, allocations: 0 / 0.5458 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1234, allocations: 7.984 kB / 0.5458 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.1235, allocations: 86.84 kB / 0.5459 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.1235, allocations: 85.05 kB / 0.546 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1235, allocations: 7.922 kB / 0.546 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-06/0.1235, allocations: 0 / 0.546 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-06/0.1235, allocations: 0 / 0.546 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.1236, allocations: 4 kB / 0.546 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.255e-05/0.1236, allocations: 79.31 kB / 0.5461 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1236, allocations: 0 / 0.5461 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.1238, allocations: 19.94 kB / 0.5461 GB, free: 0.5391 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.000978/0.1248, allocations: 0.7987 MB / 0.5469 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.359e-05/0.1249, allocations: 63.39 kB / 0.5469 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1249, allocations: 4.062 kB / 0.547 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.606e-05/0.1249, allocations: 55.41 kB / 0.547 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1251, allocations: 5.562 kB / 0.547 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003001/0.1254, allocations: 122.6 kB / 0.5471 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1257, allocations: 0.6727 MB / 0.5478 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.1257, allocations: 0 / 0.5478 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.302e-05/0.1257, allocations: 7.438 kB / 0.5478 GB, free: 14.76 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1257, allocations: 0 / 0.5478 GB, free: 14.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.1479, allocations: 1.642 MB / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.251, allocations: 3.938 kB / 0.5494 GB, free: 13.19 MB / 414.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.192184971645474]