Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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: 112.2 kB / 21.22 MB, free: 0.7422 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.001474/0.001474, allocations: 209.2 kB / 24.53 MB, free: 4.133 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.449/1.449, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.2281/0.2281, allocations: 46.94 MB / 361.7 MB, free: 4.262 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.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 71.88 kB / 0.4969 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3019, allocations: 66.02 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001605/0.3035, allocations: 0.4883 MB / 0.5619 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3049, allocations: 0.8631 MB / 0.5627 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.222e-05/0.3049, allocations: 0 / 0.5627 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.3049, allocations: 7.938 kB / 0.5627 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.305, allocations: 4 kB / 0.5627 GB, free: 3.121 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0006277/0.3057, allocations: 58.47 kB / 0.5628 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.658e-05/0.3057, allocations: 8 kB / 0.5628 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.262e-05/0.3058, allocations: 0 / 0.5628 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.197e-05/0.3058, allocations: 7.984 kB / 0.5628 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.098e-05/0.3059, allocations: 0 / 0.5628 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.885e-06/0.3059, allocations: 0 / 0.5628 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.306, allocations: 63.94 kB / 0.5629 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-06/0.306, allocations: 0 / 0.5629 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.3061, allocations: 3.938 kB / 0.5629 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.3062, allocations: 59.66 kB / 0.5629 GB, free: 2.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3062, allocations: 4 kB / 0.5629 GB, free: 2.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3062, allocations: 3.938 kB / 0.5629 GB, free: 2.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.3062, allocations: 0 / 0.5629 GB, free: 2.922 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.0003686/0.3066, allocations: 278 kB / 0.5632 GB, free: 2.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3066, allocations: 12.03 kB / 0.5632 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.072e-05/0.3066, allocations: 192 / 0.5632 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.49e-05/0.3067, allocations: 30.75 kB / 0.5632 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.16e-05/0.3067, allocations: 0.9375 kB / 0.5632 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.3068, allocations: 114.5 kB / 0.5633 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.112e-06/0.3068, allocations: 384 / 0.5633 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.106e-06/0.3068, allocations: 4.312 kB / 0.5633 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.847e-05/0.3069, allocations: 38 kB / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3069, allocations: 0 / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.3069, allocations: 0 / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.3069, allocations: 0 / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.702e-05/0.3069, allocations: 3.938 kB / 0.5634 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.307, allocations: 120.8 kB / 0.5635 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.302e-05/0.3071, allocations: 18.58 kB / 0.5635 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.747e-05/0.3071, allocations: 12.94 kB / 0.5635 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.941e-06/0.3071, allocations: 0 / 0.5635 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.3072, allocations: 60.2 kB / 0.5636 GB, free: 2.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.3072, allocations: 0 / 0.5636 GB, free: 2.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.3073, allocations: 67.33 kB / 0.5637 GB, free: 2.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.3074, allocations: 85.22 kB / 0.5637 GB, free: 1.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.3075, allocations: 97.86 kB / 0.5638 GB, free: 1.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3075, allocations: 25.7 kB / 0.5639 GB, free: 1.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.479e-05/0.3075, allocations: 80.14 kB / 0.5639 GB, free: 1.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.216e-05/0.3075, allocations: 0 / 0.5639 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/0.3075, allocations: 13.72 kB / 0.5639 GB, free: 1.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3077, allocations: 310.8 kB / 0.5642 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.546e-06/0.3077, allocations: 128 / 0.5642 GB, free: 1.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.224e-06/0.3077, allocations: 8 kB / 0.5642 GB, free: 1.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.332e-05/0.3078, allocations: 64.25 kB / 0.5643 GB, free: 1.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3078, allocations: 0 / 0.5643 GB, free: 1.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.171e-05/0.3078, allocations: 63.34 kB / 0.5644 GB, free: 1.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.3079, allocations: 37.64 kB / 0.5644 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.3079, allocations: 0 / 0.5644 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.3079, allocations: 0 / 0.5644 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3079, allocations: 0 / 0.5644 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.788e-06/0.3079, allocations: 4.094 kB / 0.5644 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.3079, allocations: 3.984 kB / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.3079, allocations: 4 kB / 0.5644 GB, free: 1.152 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 8.981e-05/0.308, allocations: 135.5 kB / 0.5645 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-06/0.308, allocations: 7.875 kB / 0.5646 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.308, allocations: 7 kB / 0.5646 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.308, allocations: 4 kB / 0.5646 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.308, allocations: 3.938 kB / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.308, allocations: 0 / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.3081, allocations: 120.8 kB / 0.5647 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3081, allocations: 4 kB / 0.5647 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3081, allocations: 0 / 0.5647 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3081, allocations: 3.938 kB / 0.5647 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-06/0.3081, allocations: 0 / 0.5647 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3081, allocations: 0 / 0.5647 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.3081, allocations: 0 / 0.5647 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.3083, allocations: 94.77 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.3083, allocations: 11.92 kB / 0.5648 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.3083, allocations: 4 kB / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-06/0.3083, allocations: 0 / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.3083, allocations: 0 / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.3083, allocations: 0 / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.078e-05/0.3083, allocations: 79.28 kB / 0.5649 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3083, allocations: 4 kB / 0.5649 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002133/0.3086, allocations: 19.92 kB / 0.5649 GB, free: 0.5781 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.0008714/0.3094, allocations: 0.7287 MB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.3095, allocations: 63.39 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3095, allocations: 0 / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.069e-05/0.3096, allocations: 55.41 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3097, allocations: 0 / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003654/0.3101, allocations: 134.7 kB / 0.5658 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.3104, allocations: 0.669 MB / 0.5665 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.294e-06/0.3104, allocations: 4 kB / 0.5665 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.014e-05/0.3105, allocations: 7.438 kB / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3105, allocations: 0 / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.3327, allocations: 1.652 MB / 0.5681 GB, free: 13.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.84, allocations: 6.266 kB / 0.5681 GB, free: 13.32 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 14.653220220992807]