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.00136/0.00136, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001473/0.001473, allocations: 209.3 kB / 23.74 MB, free: 4.672 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.435/1.435, allocations: 230.6 MB / 257.5 MB, free: 8 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.2181/0.2181, allocations: 44.91 MB / 358.8 MB, free: 6.258 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.002047/0.002047, allocations: 59.91 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3246, allocations: 65.48 MB / 0.557 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001505/0.3261, allocations: 487 kB / 0.5575 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005515/0.3266, allocations: 233.5 kB / 0.5577 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.139e-05/0.3267, allocations: 0 / 0.5577 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.3267, allocations: 1.031 kB / 0.5577 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.315e-06/0.3267, allocations: 3.938 kB / 0.5577 GB, free: 6.988 MB / 398.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.0002891/0.327, allocations: 37.84 kB / 0.5577 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.226e-05/0.327, allocations: 2.281 kB / 0.5577 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.3271, allocations: 5.078 kB / 0.5577 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.463e-05/0.3271, allocations: 4.906 kB / 0.5577 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.177e-05/0.3271, allocations: 0 / 0.5577 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.3271, allocations: 1.094 kB / 0.5577 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.3272, allocations: 57.98 kB / 0.5578 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.087e-06/0.3272, allocations: 5.109 kB / 0.5578 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.732e-05/0.3273, allocations: 0 / 0.5578 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3274, allocations: 46 kB / 0.5579 GB, free: 6.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3274, allocations: 0 / 0.5579 GB, free: 6.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3274, allocations: 0 / 0.5579 GB, free: 6.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.3274, allocations: 0 / 0.5579 GB, free: 6.898 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.0003339/0.3277, allocations: 275.4 kB / 0.5581 GB, free: 6.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3278, allocations: 12.03 kB / 0.5581 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.3278, allocations: 34.75 kB / 0.5582 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.315e-05/0.3278, allocations: 4.938 kB / 0.5582 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.23e-05/0.3279, allocations: 106.5 kB / 0.5583 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.3279, allocations: 384 / 0.5583 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.3279, allocations: 4.375 kB / 0.5583 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.118e-05/0.328, allocations: 30.2 kB / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.328, allocations: 3.938 kB / 0.5583 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.262e-06/0.328, allocations: 0 / 0.5583 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.328, allocations: 0 / 0.5583 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.663e-05/0.3281, allocations: 4 kB / 0.5583 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001396/0.3282, allocations: 124.8 kB / 0.5584 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.156e-05/0.3282, allocations: 18.61 kB / 0.5584 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.432e-05/0.3283, allocations: 4.859 kB / 0.5584 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3283, allocations: 0 / 0.5584 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.3283, allocations: 64.2 kB / 0.5585 GB, free: 6.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.3283, allocations: 3.938 kB / 0.5585 GB, free: 6.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.3285, allocations: 67.52 kB / 0.5586 GB, free: 6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.3285, allocations: 85.11 kB / 0.5587 GB, free: 5.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.477e-05/0.3286, allocations: 97.81 kB / 0.5588 GB, free: 5.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.3286, allocations: 25.7 kB / 0.5588 GB, free: 5.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.3287, allocations: 84.08 kB / 0.5589 GB, free: 5.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.3287, allocations: 0 / 0.5589 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.3287, allocations: 13.72 kB / 0.5589 GB, free: 5.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3288, allocations: 310.8 kB / 0.5592 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.3288, allocations: 0 / 0.5592 GB, free: 5.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.3289, allocations: 4 kB / 0.5592 GB, free: 5.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.797e-05/0.3289, allocations: 72.19 kB / 0.5592 GB, free: 5.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3289, allocations: 0 / 0.5592 GB, free: 5.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.781e-05/0.329, allocations: 59.41 kB / 0.5593 GB, free: 5.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.329, allocations: 29.7 kB / 0.5593 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.329, allocations: 3.938 kB / 0.5593 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.329, allocations: 0 / 0.5593 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.765e-06/0.3291, allocations: 4 kB / 0.5593 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3291, allocations: 96 / 0.5593 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.405e-05/0.3291, allocations: 4 kB / 0.5593 GB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.3291, allocations: 3.984 kB / 0.5593 GB, free: 5.133 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.0001027/0.3292, allocations: 139.5 kB / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3292, allocations: 0 / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.207e-05/0.3292, allocations: 6.938 kB / 0.5595 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.3292, allocations: 0 / 0.5595 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3292, allocations: 0 / 0.5595 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3292, allocations: 0 / 0.5595 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.701e-05/0.3293, allocations: 124.7 kB / 0.5596 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3293, allocations: 4 kB / 0.5596 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-06/0.3293, allocations: 7.922 kB / 0.5596 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3293, allocations: 0 / 0.5596 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.3293, allocations: 3.938 kB / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3293, allocations: 0 / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3293, allocations: 0 / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.3294, allocations: 90.83 kB / 0.5597 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-06/0.3294, allocations: 4.031 kB / 0.5597 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.3295, allocations: 7.938 kB / 0.5597 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-06/0.3295, allocations: 0 / 0.5597 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.3295, allocations: 0 / 0.5597 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.3295, allocations: 0 / 0.5597 GB, free: 4.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.241e-05/0.3295, allocations: 75.28 kB / 0.5598 GB, free: 4.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3295, allocations: 3.938 kB / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.3297, allocations: 31.86 kB / 0.5598 GB, free: 4.559 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.0007241/0.3305, allocations: 0.713 MB / 0.5605 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.3306, allocations: 63.39 kB / 0.5606 GB, free: 3.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3306, allocations: 0 / 0.5606 GB, free: 3.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.706e-05/0.3306, allocations: 55.41 kB / 0.5606 GB, free: 3.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.3307, allocations: 2.031 kB / 0.5606 GB, free: 3.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002851/0.331, allocations: 118.6 kB / 0.5607 GB, free: 3.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3313, allocations: 0.6769 MB / 0.5614 GB, free: 2.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.578e-06/0.3313, allocations: 0 / 0.5614 GB, free: 2.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.3313, allocations: 7.438 kB / 0.5614 GB, free: 2.832 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3313, allocations: 0 / 0.5614 GB, free: 2.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3576, allocations: 1.529 MB / 0.5629 GB, free: 1.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.47, allocations: 5.719 kB / 0.5629 GB, free: 1.43 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.328117534001649]