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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 112.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2129/0.2129, allocations: 44.2 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2987, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001474/0.3002, allocations: 495.2 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004602/0.3007, allocations: 205.3 kB / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.466e-05/0.3008, allocations: 0 / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.3008, allocations: 0 / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.3008, allocations: 1.25 kB / 0.5191 GB, free: 2.875 MB / 382.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.00025/0.301, allocations: 48.98 kB / 0.5191 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.195e-05/0.3011, allocations: 9.516 kB / 0.5191 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.027e-05/0.3011, allocations: 4.797 kB / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.274e-05/0.3012, allocations: 1.375 kB / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.895e-05/0.3012, allocations: 2.172 kB / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-06/0.3012, allocations: 0 / 0.5191 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.3013, allocations: 49.83 kB / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.803e-06/0.3013, allocations: 1.781 kB / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.46e-05/0.3013, allocations: 0 / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.3014, allocations: 48.59 kB / 0.5192 GB, free: 2.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3015, allocations: 0 / 0.5192 GB, free: 2.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3015, allocations: 0 / 0.5192 GB, free: 2.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.289e-06/0.3015, allocations: 4.938 kB / 0.5192 GB, free: 2.801 MB / 382.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.0002188/0.3017, allocations: 351.7 kB / 0.5196 GB, free: 2.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3017, allocations: 9.594 kB / 0.5196 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.754e-05/0.3018, allocations: 34.75 kB / 0.5196 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.086e-05/0.3018, allocations: 1.969 kB / 0.5196 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.505e-05/0.3018, allocations: 168.3 kB / 0.5198 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.3018, allocations: 1.312 kB / 0.5198 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.3019, allocations: 3.891 kB / 0.5198 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.663e-05/0.3019, allocations: 32.3 kB / 0.5198 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3019, allocations: 4.844 kB / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-06/0.302, allocations: 0 / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.302, allocations: 1.281 kB / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.507e-05/0.302, allocations: 1.031 kB / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.62e-05/0.3021, allocations: 144.8 kB / 0.52 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.572e-05/0.3021, allocations: 24.64 kB / 0.52 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.142e-05/0.3021, allocations: 5.891 kB / 0.52 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.3021, allocations: 4.844 kB / 0.52 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3022, allocations: 58.52 kB / 0.52 GB, free: 1.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3022, allocations: 0 / 0.52 GB, free: 1.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.00014/0.3023, allocations: 65.12 kB / 0.5201 GB, free: 1.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.3024, allocations: 79.16 kB / 0.5202 GB, free: 1.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.705e-05/0.3024, allocations: 93.86 kB / 0.5203 GB, free: 1.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-06/0.3024, allocations: 29.64 kB / 0.5203 GB, free: 1.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.055e-05/0.3024, allocations: 82.45 kB / 0.5204 GB, free: 1.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.3024, allocations: 4 kB / 0.5204 GB, free: 1.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.3025, allocations: 13.27 kB / 0.5204 GB, free: 1.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.881e-05/0.3025, allocations: 311.5 kB / 0.5207 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.3025, allocations: 1.188 kB / 0.5207 GB, free: 1.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.162e-06/0.3025, allocations: 1.5 kB / 0.5207 GB, free: 1.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.518e-05/0.3026, allocations: 69.47 kB / 0.5208 GB, free: 1.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3026, allocations: 0 / 0.5208 GB, free: 1.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.454e-05/0.3026, allocations: 63.44 kB / 0.5208 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.3027, allocations: 36.12 kB / 0.5209 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3027, allocations: 3.938 kB / 0.5209 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3027, allocations: 1.844 kB / 0.5209 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.3027, allocations: 3.938 kB / 0.5209 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.3027, allocations: 0 / 0.5209 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.505e-05/0.3027, allocations: 1.797 kB / 0.5209 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.3027, allocations: 1.281 kB / 0.5209 GB, free: 0.9297 MB / 382.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 5.068e-05/0.3028, allocations: 135.3 kB / 0.521 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-06/0.3028, allocations: 11.97 kB / 0.521 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.135e-05/0.3028, allocations: 16.94 kB / 0.521 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3028, allocations: 0 / 0.521 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3028, allocations: 0 / 0.521 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3029, allocations: 1.844 kB / 0.521 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.874e-05/0.3029, allocations: 144.9 kB / 0.5212 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3029, allocations: 0 / 0.5212 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.164e-06/0.3029, allocations: 5.734 kB / 0.5212 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3029, allocations: 0 / 0.5212 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.3029, allocations: 5.281 kB / 0.5212 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3029, allocations: 4.609 kB / 0.5212 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3029, allocations: 0 / 0.5212 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.944e-05/0.303, allocations: 88.92 kB / 0.5213 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.3031, allocations: 78.92 kB / 0.5213 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.3031, allocations: 9.594 kB / 0.5213 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.3031, allocations: 0 / 0.5213 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.832e-05/0.3031, allocations: 1.922 kB / 0.5214 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.3031, allocations: 1.656 kB / 0.5214 GB, free: 368 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.687e-05/0.3031, allocations: 79.31 kB / 0.5214 GB, free: 288 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3032, allocations: 0 / 0.5214 GB, free: 288 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000223/0.3034, allocations: 21.2 kB / 0.5214 GB, free: 280 kB / 382.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.0007582/0.3041, allocations: 0.7312 MB / 0.5222 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3043, allocations: 63.11 kB / 0.5222 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3043, allocations: 0 / 0.5222 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.299e-05/0.3043, allocations: 59.36 kB / 0.5223 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.3044, allocations: 6.266 kB / 0.5223 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002681/0.3047, allocations: 108.5 kB / 0.5224 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.305, allocations: 0.675 MB / 0.523 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.849e-06/0.305, allocations: 1.188 kB / 0.523 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.305, allocations: 11.56 kB / 0.5231 GB, free: 14.62 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.305, allocations: 1.156 kB / 0.5231 GB, free: 14.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.3264, allocations: 1.387 MB / 0.5244 GB, free: 14.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.46, allocations: 3.031 kB / 0.5244 GB, free: 14.18 MB / 398.1 MB (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) 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) Reference file matches