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.001345/0.001345, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001572/0.001572, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2355/0.2355, allocations: 46.95 MB / 360.9 MB, free: 4.039 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.002259/0.002259, allocations: 72.08 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3622, allocations: 66.03 MB / 0.5606 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002197/0.3644, allocations: 493.1 kB / 0.561 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008121/0.3652, allocations: 217.7 kB / 0.5612 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.765e-05/0.3653, allocations: 0 / 0.5612 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.3653, allocations: 0 / 0.5612 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.027e-06/0.3653, allocations: 3.938 kB / 0.5612 GB, free: 3.559 MB / 398.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.0004124/0.3657, allocations: 51.83 kB / 0.5613 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.772e-05/0.3658, allocations: 0 / 0.5613 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.93e-05/0.3658, allocations: 4 kB / 0.5613 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.235e-05/0.3659, allocations: 7.984 kB / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.993e-05/0.3659, allocations: 0 / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.3659, allocations: 0 / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.3661, allocations: 51.95 kB / 0.5614 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.888e-06/0.3661, allocations: 0 / 0.5614 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.375e-05/0.3661, allocations: 0 / 0.5614 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.3662, allocations: 47.73 kB / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3662, allocations: 0 / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3663, allocations: 7.938 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3663, allocations: 0 / 0.5614 GB, free: 3.395 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.000408/0.3667, allocations: 278 kB / 0.5617 GB, free: 3.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.3667, allocations: 12.02 kB / 0.5617 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.3668, allocations: 34.69 kB / 0.5617 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.3668, allocations: 4.938 kB / 0.5617 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.3669, allocations: 102.5 kB / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3669, allocations: 384 / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3669, allocations: 384 / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.367, allocations: 59.97 kB / 0.5619 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3671, allocations: 7.938 kB / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.3671, allocations: 0 / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3671, allocations: 0 / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.118e-05/0.3671, allocations: 33.69 kB / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.3673, allocations: 112.8 kB / 0.562 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.104e-05/0.3674, allocations: 52.25 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.571e-05/0.3674, allocations: 30.56 kB / 0.5621 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.3674, allocations: 0 / 0.5621 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.993e-05/0.3675, allocations: 60.33 kB / 0.5622 GB, free: 2.453 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3675, allocations: 0 / 0.5622 GB, free: 2.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002417/0.3677, allocations: 126.7 kB / 0.5623 GB, free: 2.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.211e-05/0.3678, allocations: 81.05 kB / 0.5624 GB, free: 2.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.784e-05/0.3679, allocations: 93.81 kB / 0.5625 GB, free: 2.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.3679, allocations: 25.7 kB / 0.5625 GB, free: 2.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.368, allocations: 84.14 kB / 0.5626 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.368, allocations: 0 / 0.5626 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.368, allocations: 13.7 kB / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.3682, allocations: 314.8 kB / 0.5629 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.3682, allocations: 29.7 kB / 0.5629 GB, free: 1.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.658e-05/0.3683, allocations: 25.7 kB / 0.5629 GB, free: 1.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.639e-05/0.3684, allocations: 64.45 kB / 0.563 GB, free: 1.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3684, allocations: 0 / 0.563 GB, free: 1.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001184/0.3685, allocations: 89.09 kB / 0.5631 GB, free: 1.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.751e-05/0.3685, allocations: 37.64 kB / 0.5631 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3685, allocations: 11.88 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3685, allocations: 0 / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.178e-06/0.3685, allocations: 4 kB / 0.5631 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.3686, allocations: 0 / 0.5631 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.048e-05/0.3686, allocations: 0 / 0.5631 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.3686, allocations: 3.984 kB / 0.5631 GB, free: 1.34 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 0.0001315/0.3687, allocations: 143.6 kB / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.3687, allocations: 0 / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.489e-05/0.3687, allocations: 10.88 kB / 0.5633 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3687, allocations: 0 / 0.5633 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3687, allocations: 4 kB / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.3687, allocations: 0 / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.3689, allocations: 112.8 kB / 0.5634 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3689, allocations: 3.984 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.3689, allocations: 0 / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3689, allocations: 0 / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3689, allocations: 7.938 kB / 0.5634 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3689, allocations: 4 kB / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3689, allocations: 0 / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.3691, allocations: 124.5 kB / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-06/0.3691, allocations: 0 / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.3691, allocations: 3.938 kB / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.3691, allocations: 4 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.831e-05/0.3691, allocations: 0 / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.3691, allocations: 0 / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.455e-05/0.3692, allocations: 75.28 kB / 0.5636 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3692, allocations: 0 / 0.5636 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.3695, allocations: 19.97 kB / 0.5636 GB, free: 0.7461 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.0009964/0.3705, allocations: 0.7544 MB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.3707, allocations: 118.7 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3707, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.113e-05/0.3707, allocations: 81.11 kB / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.3709, allocations: 4 kB / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004094/0.3713, allocations: 140.3 kB / 0.5647 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.615e-05/0.3714, allocations: 55.36 kB / 0.5647 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.3714, allocations: 0 / 0.5647 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.759e-05/0.3714, allocations: 11.56 kB / 0.5647 GB, free: 15.47 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3714, allocations: 0 / 0.5647 GB, free: 15.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.4034, allocations: 1.937 MB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.47, allocations: 11.75 kB / 0.5666 GB, free: 13.66 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.461031615268439]