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.001343/0.001343, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.001551/0.001551, allocations: 219 kB / 21.46 MB, free: 1.586 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.497/1.497, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.2313/0.2313, allocations: 44.91 MB / 355.8 MB, free: 12.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",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.002675/0.002675, allocations: 66.2 kB / 0.4885 GB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1295, allocations: 65.41 MB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00182/0.1313, allocations: 494.2 kB / 0.5529 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006913/0.132, allocations: 255.6 kB / 0.5531 GB, free: 9.422 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.143e-05/0.1321, allocations: 7.938 kB / 0.5531 GB, free: 9.414 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.152e-05/0.1321, allocations: 3.938 kB / 0.5531 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1321, allocations: 0 / 0.5531 GB, free: 9.41 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.0003482/0.1324, allocations: 51.81 kB / 0.5532 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.222e-05/0.1325, allocations: 0 / 0.5532 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.127e-05/0.1325, allocations: 0 / 0.5532 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.1325, allocations: 4 kB / 0.5532 GB, free: 9.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.657e-05/0.1326, allocations: 7.984 kB / 0.5532 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.416e-06/0.1326, allocations: 0 / 0.5532 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.1327, allocations: 63.95 kB / 0.5533 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-06/0.1328, allocations: 0 / 0.5533 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.1328, allocations: 3.984 kB / 0.5533 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.1329, allocations: 56.16 kB / 0.5533 GB, free: 9.227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1329, allocations: 3.938 kB / 0.5533 GB, free: 9.223 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1329, allocations: 3.938 kB / 0.5533 GB, free: 9.219 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1329, allocations: 0 / 0.5533 GB, free: 9.219 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.0004073/0.1333, allocations: 357.1 kB / 0.5537 GB, free: 8.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.1334, allocations: 16.03 kB / 0.5537 GB, free: 8.797 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.453e-05/0.1334, allocations: 192 / 0.5537 GB, free: 8.797 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.1335, allocations: 34.75 kB / 0.5537 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.495e-05/0.1335, allocations: 0.9375 kB / 0.5537 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.1336, allocations: 160.4 kB / 0.5539 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.1336, allocations: 384 / 0.5539 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.1336, allocations: 4.375 kB / 0.5539 GB, free: 8.555 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.1339, allocations: 30.02 kB / 0.5539 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.1339, allocations: 0 / 0.5539 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1339, allocations: 4 kB / 0.5539 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.1339, allocations: 3.984 kB / 0.5539 GB, free: 8.512 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.63e-05/0.1339, allocations: 11.92 kB / 0.5539 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.1341, allocations: 141.7 kB / 0.5541 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.989e-05/0.1341, allocations: 18.67 kB / 0.5541 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.1342, allocations: 8.859 kB / 0.5541 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.1342, allocations: 0 / 0.5541 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.335e-05/0.1342, allocations: 68.2 kB / 0.5541 GB, free: 8.191 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1342, allocations: 0 / 0.5541 GB, free: 8.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001788/0.1344, allocations: 67.33 kB / 0.5542 GB, free: 8.113 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.1345, allocations: 77.11 kB / 0.5543 GB, free: 8.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.397e-05/0.1345, allocations: 97.81 kB / 0.5544 GB, free: 7.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1345, allocations: 29.7 kB / 0.5544 GB, free: 7.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1346, allocations: 85.81 kB / 0.5545 GB, free: 7.793 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.1347, allocations: 3.938 kB / 0.5545 GB, free: 7.789 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.1347, allocations: 13.84 kB / 0.5545 GB, free: 7.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.1349, allocations: 318.8 kB / 0.5548 GB, free: 7.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.1349, allocations: 0 / 0.5548 GB, free: 7.449 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.991e-06/0.1349, allocations: 0 / 0.5548 GB, free: 7.449 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.394e-05/0.135, allocations: 64.27 kB / 0.5549 GB, free: 7.371 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.135, allocations: 0 / 0.5549 GB, free: 7.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001424/0.1351, allocations: 63.34 kB / 0.5549 GB, free: 7.297 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.1352, allocations: 37.62 kB / 0.555 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1352, allocations: 4.094 kB / 0.555 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.1352, allocations: 0 / 0.555 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1352, allocations: 0 / 0.555 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1352, allocations: 4 kB / 0.555 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.559e-05/0.1352, allocations: 0 / 0.555 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.1352, allocations: 0 / 0.555 GB, free: 7.246 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.0001205/0.1353, allocations: 133.7 kB / 0.5551 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-06/0.1354, allocations: 7.938 kB / 0.5551 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.048e-05/0.1354, allocations: 7.125 kB / 0.5551 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1354, allocations: 7.984 kB / 0.5551 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1354, allocations: 0 / 0.5551 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1354, allocations: 0 / 0.5551 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.1355, allocations: 145.7 kB / 0.5553 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1355, allocations: 0 / 0.5553 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1355, allocations: 0 / 0.5553 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1355, allocations: 3.938 kB / 0.5553 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.1355, allocations: 0 / 0.5553 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.1355, allocations: 0 / 0.5553 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1355, allocations: 3.984 kB / 0.5553 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.1356, allocations: 94.78 kB / 0.5554 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.1357, allocations: 81.05 kB / 0.5554 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.1357, allocations: 7.922 kB / 0.5554 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.1357, allocations: 4 kB / 0.5554 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.1357, allocations: 0 / 0.5554 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.1357, allocations: 0 / 0.5554 GB, free: 6.656 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.843e-05/0.1357, allocations: 75.28 kB / 0.5555 GB, free: 6.582 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1357, allocations: 3.938 kB / 0.5555 GB, free: 6.578 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.136, allocations: 27.97 kB / 0.5555 GB, free: 6.551 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.001003/0.137, allocations: 0.7983 MB / 0.5563 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.1371, allocations: 63.39 kB / 0.5564 GB, free: 5.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1371, allocations: 0 / 0.5564 GB, free: 5.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.989e-05/0.1371, allocations: 59.47 kB / 0.5564 GB, free: 5.641 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.1373, allocations: 1.406 kB / 0.5564 GB, free: 5.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003154/0.1376, allocations: 122.7 kB / 0.5566 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004422/0.138, allocations: 0.6729 MB / 0.5572 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.492e-06/0.138, allocations: 0 / 0.5572 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.601e-05/0.138, allocations: 7.438 kB / 0.5572 GB, free: 4.773 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.138, allocations: 0 / 0.5572 GB, free: 4.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.1712, allocations: 1.677 MB / 0.5589 GB, free: 3.188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.738/8.909, allocations: 8 kB / 0.5589 GB, free: 3.18 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 & /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/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.948770179005805]