Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.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.001662/0.001662, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002115/0.002115, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.51/1.51, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.2279/0.2279, allocations: 46.93 MB / 357.1 MB, free: 10.3 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 68.12 kB / 0.4909 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.118, allocations: 65.99 MB / 0.5553 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001544/0.1195, allocations: 488.9 kB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005492/0.12, allocations: 216 kB / 0.556 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.1201, allocations: 7.938 kB / 0.556 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.1201, allocations: 0 / 0.556 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.1201, allocations: 0 / 0.556 GB, free: 5.164 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.1204, allocations: 43.83 kB / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.872e-05/0.1204, allocations: 4 kB / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.968e-05/0.1204, allocations: 4 kB / 0.5561 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.335e-05/0.1205, allocations: 0 / 0.5561 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.119e-05/0.1205, allocations: 3.984 kB / 0.5561 GB, free: 5.109 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-06/0.1205, allocations: 4 kB / 0.5561 GB, free: 5.105 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.1206, allocations: 51.95 kB / 0.5561 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-06/0.1206, allocations: 0 / 0.5561 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.63e-05/0.1206, allocations: 0 / 0.5561 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.1207, allocations: 47.88 kB / 0.5562 GB, free: 5.008 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1207, allocations: 0 / 0.5562 GB, free: 5.008 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1207, allocations: 0 / 0.5562 GB, free: 5.008 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1207, allocations: 0 / 0.5562 GB, free: 5.008 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.0003565/0.1211, allocations: 361.1 kB / 0.5565 GB, free: 4.598 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1211, allocations: 8.031 kB / 0.5565 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.379e-05/0.1212, allocations: 34.75 kB / 0.5566 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.1212, allocations: 4.938 kB / 0.5566 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.1213, allocations: 160.4 kB / 0.5567 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1213, allocations: 4.375 kB / 0.5567 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-06/0.1213, allocations: 384 / 0.5567 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.049e-05/0.1214, allocations: 38.19 kB / 0.5568 GB, free: 4.301 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1214, allocations: 7.922 kB / 0.5568 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.1214, allocations: 0 / 0.5568 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.1214, allocations: 0 / 0.5568 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.637e-05/0.1214, allocations: 7.938 kB / 0.5568 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.1216, allocations: 149.7 kB / 0.5569 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.242e-05/0.1216, allocations: 14.58 kB / 0.5569 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.616e-05/0.1217, allocations: 8.844 kB / 0.5569 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.1217, allocations: 3.938 kB / 0.5569 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.1217, allocations: 60.36 kB / 0.557 GB, free: 3.977 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1217, allocations: 0 / 0.557 GB, free: 3.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/0.1219, allocations: 71.34 kB / 0.5571 GB, free: 3.895 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/0.1219, allocations: 81.05 kB / 0.5571 GB, free: 3.797 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.171e-05/0.122, allocations: 97.8 kB / 0.5572 GB, free: 3.691 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.122, allocations: 25.7 kB / 0.5573 GB, free: 3.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.08e-05/0.122, allocations: 80.14 kB / 0.5573 GB, free: 3.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.122, allocations: 0 / 0.5573 GB, free: 3.578 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.1221, allocations: 13.72 kB / 0.5574 GB, free: 3.559 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1222, allocations: 311 kB / 0.5576 GB, free: 3.246 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.1222, allocations: 8 kB / 0.5577 GB, free: 3.238 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-06/0.1222, allocations: 7.938 kB / 0.5577 GB, free: 3.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.941e-05/0.1223, allocations: 56.27 kB / 0.5577 GB, free: 3.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1223, allocations: 4 kB / 0.5577 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.369e-05/0.1223, allocations: 59.39 kB / 0.5578 GB, free: 3.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.1224, allocations: 33.7 kB / 0.5578 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1224, allocations: 3.938 kB / 0.5578 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.1224, allocations: 0 / 0.5578 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1224, allocations: 4.094 kB / 0.5578 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1224, allocations: 0 / 0.5578 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.406e-05/0.1224, allocations: 0 / 0.5578 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.1224, allocations: 0 / 0.5578 GB, free: 3.039 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 8.68e-05/0.1225, allocations: 143.5 kB / 0.558 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.924e-06/0.1225, allocations: 0 / 0.558 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.067e-06/0.1225, allocations: 7.062 kB / 0.558 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.1225, allocations: 3.938 kB / 0.558 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1225, allocations: 4 kB / 0.558 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1225, allocations: 4 kB / 0.558 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.971e-05/0.1226, allocations: 141.7 kB / 0.5581 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1226, allocations: 3.984 kB / 0.5581 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1226, allocations: 0 / 0.5581 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.1226, allocations: 0 / 0.5581 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.1226, allocations: 7.938 kB / 0.5581 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1226, allocations: 0 / 0.5581 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1226, allocations: 0 / 0.5581 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.1227, allocations: 94.83 kB / 0.5582 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.1228, allocations: 77.11 kB / 0.5583 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.1228, allocations: 11.88 kB / 0.5583 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.1228, allocations: 0 / 0.5583 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-06/0.1228, allocations: 3.938 kB / 0.5583 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-06/0.1228, allocations: 4 kB / 0.5583 GB, free: 2.438 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.093e-05/0.1229, allocations: 76.94 kB / 0.5584 GB, free: 2.363 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1229, allocations: 0 / 0.5584 GB, free: 2.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1231, allocations: 19.94 kB / 0.5584 GB, free: 2.344 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.0007295/0.1238, allocations: 0.7173 MB / 0.5591 GB, free: 1.621 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.1239, allocations: 59.41 kB / 0.5592 GB, free: 1.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1239, allocations: 0 / 0.5592 GB, free: 1.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.088e-05/0.1239, allocations: 63.33 kB / 0.5592 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1241, allocations: 0 / 0.5592 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002795/0.1244, allocations: 122.8 kB / 0.5593 GB, free: 1.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.1246, allocations: 0.669 MB / 0.56 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.1246, allocations: 0 / 0.56 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.234e-05/0.1247, allocations: 7.438 kB / 0.56 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1247, allocations: 0 / 0.56 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.1467, allocations: 1.407 MB / 0.5614 GB, free: 15.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/8.131, allocations: 9.875 kB / 0.5614 GB, free: 15.27 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.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.08156392199453]