Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00185/0.00185, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 213.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.92 MB / 360.8 MB, free: 4.203 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 79.86 kB / 0.4962 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2987, allocations: 66.08 MB / 0.5607 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001565/0.3002, allocations: 491.2 kB / 0.5612 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005685/0.3008, allocations: 225.7 kB / 0.5614 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.3008, allocations: 0 / 0.5614 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.3008, allocations: 0 / 0.5614 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.3008, allocations: 0 / 0.5614 GB, free: 3.641 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002851/0.3011, allocations: 47.83 kB / 0.5614 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.079e-05/0.3012, allocations: 4 kB / 0.5614 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.784e-05/0.3012, allocations: 3.984 kB / 0.5614 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.482e-05/0.3012, allocations: 4 kB / 0.5614 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.3013, allocations: 4 kB / 0.5615 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.3013, allocations: 0 / 0.5615 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.3014, allocations: 51.95 kB / 0.5615 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.841e-06/0.3014, allocations: 0 / 0.5615 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.3014, allocations: 3.984 kB / 0.5615 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.3015, allocations: 43.69 kB / 0.5615 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3015, allocations: 0 / 0.5615 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3015, allocations: 3.938 kB / 0.5616 GB, free: 3.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.3015, allocations: 3.938 kB / 0.5616 GB, free: 3.477 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.0003247/0.3019, allocations: 282 kB / 0.5618 GB, free: 3.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3019, allocations: 12.03 kB / 0.5618 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.364e-05/0.3019, allocations: 30.75 kB / 0.5619 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.171e-05/0.302, allocations: 0.9375 kB / 0.5619 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.314e-05/0.302, allocations: 106.5 kB / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.302, allocations: 384 / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.3021, allocations: 384 / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.303e-05/0.3021, allocations: 34.25 kB / 0.562 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3022, allocations: 7.938 kB / 0.562 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.3022, allocations: 0 / 0.562 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3022, allocations: 4 kB / 0.562 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.482e-05/0.3022, allocations: 0 / 0.562 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.3023, allocations: 120.7 kB / 0.5621 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.583e-05/0.3023, allocations: 14.58 kB / 0.5621 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.3024, allocations: 8.844 kB / 0.5621 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.3024, allocations: 0 / 0.5621 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.101e-05/0.3024, allocations: 64.36 kB / 0.5622 GB, free: 2.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3024, allocations: 4 kB / 0.5622 GB, free: 2.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.3026, allocations: 67.28 kB / 0.5623 GB, free: 2.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.3026, allocations: 81.09 kB / 0.5624 GB, free: 2.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.012e-05/0.3027, allocations: 93.81 kB / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.3027, allocations: 25.7 kB / 0.5625 GB, free: 2.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.307e-05/0.3027, allocations: 84.08 kB / 0.5626 GB, free: 2.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.3027, allocations: 0 / 0.5626 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.3028, allocations: 17.72 kB / 0.5626 GB, free: 2.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3029, allocations: 315 kB / 0.5629 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.3029, allocations: 0 / 0.5629 GB, free: 1.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.234e-06/0.3029, allocations: 4 kB / 0.5629 GB, free: 1.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/0.303, allocations: 56.27 kB / 0.5629 GB, free: 1.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.303, allocations: 0 / 0.5629 GB, free: 1.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.515e-05/0.3031, allocations: 71.33 kB / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.3031, allocations: 33.7 kB / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3031, allocations: 3.938 kB / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.3031, allocations: 4.094 kB / 0.563 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.765e-06/0.3031, allocations: 4 kB / 0.563 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.3031, allocations: 0 / 0.563 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.3031, allocations: 0 / 0.563 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.3031, allocations: 0 / 0.563 GB, free: 1.715 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.415e-05/0.3032, allocations: 140.8 kB / 0.5632 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-06/0.3032, allocations: 0 / 0.5632 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.084e-05/0.3033, allocations: 10.88 kB / 0.5632 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3033, allocations: 0 / 0.5632 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3033, allocations: 8 kB / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-06/0.3033, allocations: 0 / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.43e-05/0.3034, allocations: 120.8 kB / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3034, allocations: 0 / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3034, allocations: 0 / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3034, allocations: 0 / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.3034, allocations: 7.938 kB / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3034, allocations: 0 / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3034, allocations: 0 / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.3035, allocations: 98.77 kB / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-06/0.3035, allocations: 0 / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.3035, allocations: 3.938 kB / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-06/0.3035, allocations: 0 / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.3035, allocations: 3.984 kB / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-06/0.3035, allocations: 4 kB / 0.5634 GB, free: 1.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.553e-05/0.3035, allocations: 75.28 kB / 0.5635 GB, free: 1.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3036, allocations: 3.938 kB / 0.5635 GB, free: 1.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000209/0.3038, allocations: 15.94 kB / 0.5635 GB, free: 1.148 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.0006987/0.3045, allocations: 0.7166 MB / 0.5642 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.029e-05/0.3045, allocations: 63.28 kB / 0.5643 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3045, allocations: 0 / 0.5643 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.26e-05/0.3046, allocations: 59.39 kB / 0.5643 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.3047, allocations: 0 / 0.5643 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002841/0.305, allocations: 126.8 kB / 0.5644 GB, free: 112 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3053, allocations: 0.669 MB / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.849e-06/0.3053, allocations: 0 / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.565e-05/0.3053, allocations: 7.438 kB / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3053, allocations: 0 / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.331, allocations: 1.527 MB / 0.5666 GB, free: 13.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.56, allocations: 4.062 kB / 0.5666 GB, free: 13.98 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.42270578899479]