Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00137/0.00137, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001455/0.001455, allocations: 209.6 kB / 20.75 MB, free: 2.289 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.466/1.466, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2233/0.2233, allocations: 44.9 MB / 355.1 MB, free: 12.31 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.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",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.002095/0.002095, allocations: 67.89 kB / 499.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1169, allocations: 65.42 MB / 0.5517 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002147/0.119, allocations: 482.7 kB / 0.5522 GB, free: 9.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007234/0.1198, allocations: 219.7 kB / 0.5524 GB, free: 9.465 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.914e-05/0.1198, allocations: 0 / 0.5524 GB, free: 9.465 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.1198, allocations: 3.938 kB / 0.5524 GB, free: 9.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.1198, allocations: 0 / 0.5524 GB, free: 9.461 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0003397/0.1202, allocations: 43.89 kB / 0.5524 GB, free: 9.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.746e-05/0.1202, allocations: 7.938 kB / 0.5525 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.1203, allocations: 4 kB / 0.5525 GB, free: 9.406 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.975e-05/0.1203, allocations: 7.984 kB / 0.5525 GB, free: 9.398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.208e-05/0.1203, allocations: 0 / 0.5525 GB, free: 9.398 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.1203, allocations: 0 / 0.5525 GB, free: 9.398 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.1205, allocations: 51.95 kB / 0.5525 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.1205, allocations: 0 / 0.5525 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.1205, allocations: 3.984 kB / 0.5525 GB, free: 9.344 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.1206, allocations: 44.11 kB / 0.5526 GB, free: 9.301 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1207, allocations: 0 / 0.5526 GB, free: 9.301 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1207, allocations: 4 kB / 0.5526 GB, free: 9.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1207, allocations: 4 kB / 0.5526 GB, free: 9.293 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.0004275/0.1211, allocations: 349.2 kB / 0.5529 GB, free: 8.895 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1211, allocations: 12.03 kB / 0.5529 GB, free: 8.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.166e-05/0.1212, allocations: 30.75 kB / 0.5529 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.725e-05/0.1212, allocations: 0.9375 kB / 0.5529 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1213, allocations: 168.4 kB / 0.5531 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.1214, allocations: 384 / 0.5531 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.1214, allocations: 4.375 kB / 0.5531 GB, free: 8.637 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.1215, allocations: 34.2 kB / 0.5531 GB, free: 8.598 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1215, allocations: 3.938 kB / 0.5531 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1215, allocations: 0 / 0.5531 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1215, allocations: 4 kB / 0.5531 GB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.946e-05/0.1215, allocations: 0 / 0.5531 GB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001884/0.1217, allocations: 149.7 kB / 0.5533 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.976e-05/0.1218, allocations: 18.61 kB / 0.5533 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.1218, allocations: 4.859 kB / 0.5533 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.1218, allocations: 4 kB / 0.5533 GB, free: 8.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.89e-05/0.1219, allocations: 60.2 kB / 0.5534 GB, free: 8.281 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1219, allocations: 3.938 kB / 0.5534 GB, free: 8.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002033/0.1221, allocations: 71.39 kB / 0.5534 GB, free: 8.195 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.1221, allocations: 77.11 kB / 0.5535 GB, free: 8.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.02e-05/0.1222, allocations: 97.81 kB / 0.5536 GB, free: 7.996 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1222, allocations: 25.7 kB / 0.5536 GB, free: 7.965 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.503e-05/0.1223, allocations: 84.27 kB / 0.5537 GB, free: 7.879 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.1223, allocations: 0 / 0.5537 GB, free: 7.879 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.1223, allocations: 9.719 kB / 0.5537 GB, free: 7.863 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1225, allocations: 318.8 kB / 0.554 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.1225, allocations: 0 / 0.554 GB, free: 7.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.564e-06/0.1225, allocations: 0 / 0.554 GB, free: 7.543 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.503e-05/0.1226, allocations: 72.19 kB / 0.5541 GB, free: 7.457 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1226, allocations: 0 / 0.5541 GB, free: 7.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001092/0.1227, allocations: 63.47 kB / 0.5542 GB, free: 7.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.1227, allocations: 29.7 kB / 0.5542 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1227, allocations: 3.938 kB / 0.5542 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1228, allocations: 0 / 0.5542 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.657e-06/0.1228, allocations: 4 kB / 0.5542 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1228, allocations: 0 / 0.5542 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.1228, allocations: 3.984 kB / 0.5542 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.1228, allocations: 0 / 0.5542 GB, free: 7.336 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.0001183/0.1229, allocations: 141.7 kB / 0.5543 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.1229, allocations: 4.031 kB / 0.5543 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.152e-05/0.1229, allocations: 7.062 kB / 0.5543 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1229, allocations: 0 / 0.5543 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1229, allocations: 4 kB / 0.5543 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1229, allocations: 3.938 kB / 0.5544 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.1231, allocations: 149.7 kB / 0.5545 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1231, allocations: 0 / 0.5545 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1231, allocations: 0 / 0.5545 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1231, allocations: 0 / 0.5545 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1231, allocations: 3.938 kB / 0.5545 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1231, allocations: 4 kB / 0.5545 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1231, allocations: 3.984 kB / 0.5545 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.1232, allocations: 94.81 kB / 0.5546 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.1233, allocations: 77.11 kB / 0.5547 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.1233, allocations: 7.938 kB / 0.5547 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.383e-05/0.1233, allocations: 0 / 0.5547 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.1233, allocations: 0 / 0.5547 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.1233, allocations: 0 / 0.5547 GB, free: 6.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.349e-05/0.1234, allocations: 81.05 kB / 0.5548 GB, free: 6.664 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1234, allocations: 0 / 0.5548 GB, free: 6.664 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.1238, allocations: 27.86 kB / 0.5548 GB, free: 6.637 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.0009872/0.1247, allocations: 0.7135 MB / 0.5555 GB, free: 5.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.1249, allocations: 67.39 kB / 0.5555 GB, free: 5.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1249, allocations: 4.062 kB / 0.5555 GB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.712e-05/0.1249, allocations: 55.41 kB / 0.5556 GB, free: 5.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.1251, allocations: 0 / 0.5556 GB, free: 5.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004132/0.1255, allocations: 118.6 kB / 0.5557 GB, free: 5.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.1259, allocations: 0.6729 MB / 0.5564 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.1259, allocations: 0 / 0.5564 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.855e-05/0.1259, allocations: 7.438 kB / 0.5564 GB, free: 4.906 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1259, allocations: 0 / 0.5564 GB, free: 4.906 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.1541, allocations: 1.411 MB / 0.5578 GB, free: 3.566 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.152, allocations: 2.031 kB / 0.5578 GB, free: 3.566 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.094784551300108]