Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.001748/0.001748, allocations: 119 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.00208/0.00208, 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.517/1.517, allocations: 225.6 MB / 249.8 MB, free: 3.633 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.224/0.224, allocations: 44.91 MB / 349.6 MB, free: 1.746 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.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 71.72 kB / 491.8 MB, free: 30.19 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1129, allocations: 64.25 MB / 0.543 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001547/0.1145, allocations: 494.9 kB / 0.5434 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.1157, allocations: 0.7897 MB / 0.5442 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.692e-05/0.1157, allocations: 4 kB / 0.5442 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.1157, allocations: 0 / 0.5442 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1159, allocations: 7.938 kB / 0.5442 GB, free: 2.871 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005906/0.1165, allocations: 57.47 kB / 0.5443 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.758e-05/0.1165, allocations: 4 kB / 0.5443 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.998e-05/0.1166, allocations: 4 kB / 0.5443 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.1166, allocations: 3.984 kB / 0.5443 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.282e-05/0.1167, allocations: 6.109 kB / 0.5443 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-06/0.1167, allocations: 0 / 0.5443 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.1169, allocations: 59.94 kB / 0.5444 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.325e-06/0.1169, allocations: 4 kB / 0.5444 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.1169, allocations: 4 kB / 0.5444 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.117, allocations: 48.09 kB / 0.5444 GB, free: 2.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.117, allocations: 4 kB / 0.5444 GB, free: 2.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.117, allocations: 0 / 0.5444 GB, free: 2.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.117, allocations: 0 / 0.5444 GB, free: 2.684 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.0003888/0.1174, allocations: 353.1 kB / 0.5447 GB, free: 2.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1175, allocations: 8.031 kB / 0.5448 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.259e-05/0.1175, allocations: 30.75 kB / 0.5448 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.106e-05/0.1175, allocations: 8.812 kB / 0.5448 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.1176, allocations: 168.4 kB / 0.545 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.1176, allocations: 384 / 0.545 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.1177, allocations: 4.375 kB / 0.545 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.509e-05/0.1177, allocations: 42.22 kB / 0.545 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1178, allocations: 3.938 kB / 0.545 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-06/0.1178, allocations: 0 / 0.545 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1178, allocations: 0 / 0.545 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.375e-05/0.1178, allocations: 0 / 0.545 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.1179, allocations: 145.7 kB / 0.5451 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.478e-05/0.118, allocations: 22.52 kB / 0.5452 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.111e-05/0.118, allocations: 16.84 kB / 0.5452 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-06/0.118, allocations: 0 / 0.5452 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.1181, allocations: 60.33 kB / 0.5452 GB, free: 1.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1181, allocations: 0 / 0.5452 GB, free: 1.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001682/0.1182, allocations: 67.28 kB / 0.5453 GB, free: 1.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.1183, allocations: 89.16 kB / 0.5454 GB, free: 1.469 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.012e-05/0.1184, allocations: 97.86 kB / 0.5455 GB, free: 1.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.1184, allocations: 25.7 kB / 0.5455 GB, free: 1.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.282e-05/0.1184, allocations: 80.14 kB / 0.5456 GB, free: 1.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.1184, allocations: 3.953 kB / 0.5456 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.1184, allocations: 9.719 kB / 0.5456 GB, free: 1.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1186, allocations: 314.8 kB / 0.5459 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.488e-06/0.1186, allocations: 128 / 0.5459 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.26e-06/0.1186, allocations: 4 kB / 0.5459 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.941e-05/0.1187, allocations: 68.25 kB / 0.546 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1187, allocations: 0 / 0.546 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.629e-05/0.1187, allocations: 59.41 kB / 0.546 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.1188, allocations: 33.64 kB / 0.5461 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.1188, allocations: 7.938 kB / 0.5461 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1188, allocations: 0 / 0.5461 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1188, allocations: 0 / 0.5461 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1188, allocations: 96 / 0.5461 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.1188, allocations: 7.984 kB / 0.5461 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.1188, allocations: 0 / 0.5461 GB, free: 0.7031 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.838e-05/0.1189, allocations: 135.5 kB / 0.5462 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.1189, allocations: 7.938 kB / 0.5462 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.836e-06/0.1189, allocations: 3.125 kB / 0.5462 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1189, allocations: 0 / 0.5462 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1189, allocations: 0 / 0.5462 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.1189, allocations: 4 kB / 0.5462 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.1191, allocations: 145.7 kB / 0.5464 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.1191, allocations: 7.938 kB / 0.5464 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1191, allocations: 0 / 0.5464 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1191, allocations: 3.938 kB / 0.5464 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.1191, allocations: 4 kB / 0.5464 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1191, allocations: 0 / 0.5464 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1191, allocations: 0 / 0.5464 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001101/0.1192, allocations: 94.77 kB / 0.5465 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.1192, allocations: 81.14 kB / 0.5465 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.1193, allocations: 3.938 kB / 0.5465 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1193, allocations: 3.938 kB / 0.5465 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.1193, allocations: 0 / 0.5465 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.1193, allocations: 4 kB / 0.5465 GB, free: 108 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.115e-05/0.1193, allocations: 79.27 kB / 0.5466 GB, free: 28 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1193, allocations: 0 / 0.5466 GB, free: 28 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002155/0.1195, allocations: 19.94 kB / 0.5466 GB, free: 8 kB / 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.0007541/0.1203, allocations: 0.7114 MB / 0.5473 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.1204, allocations: 67.33 kB / 0.5474 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1204, allocations: 4 kB / 0.5474 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.474e-05/0.1204, allocations: 51.41 kB / 0.5475 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1206, allocations: 6.25 kB / 0.5475 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003007/0.1209, allocations: 118.7 kB / 0.5476 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1212, allocations: 0.6766 MB / 0.5482 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.033e-06/0.1212, allocations: 0 / 0.5482 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.96e-05/0.1212, allocations: 7.438 kB / 0.5482 GB, free: 14.27 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1212, allocations: 0 / 0.5482 GB, free: 14.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.1448, allocations: 1.512 MB / 0.5497 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/8.319, allocations: 13.91 kB / 0.5497 GB, free: 12.83 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.236785212066025]