Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_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.001198/0.001199, allocations: 107.7 kB / 16.41 MB, free: 6.488 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.00133/0.001331, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1907/0.1907, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 64.31 kB / 441.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0944/0.09583, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001534/0.0974, allocations: 490.8 kB / 499.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005114/0.09793, allocations: 214.2 kB / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.877e-05/0.09797, allocations: 4 kB / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.09799, allocations: 0 / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.09801, allocations: 0 / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.09827, allocations: 43.83 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.522e-05/0.09834, allocations: 4 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.688e-05/0.09838, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.0984, allocations: 3.984 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.881e-05/0.09843, allocations: 0 / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-06/0.09844, allocations: 3.938 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.09857, allocations: 51.95 kB / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-06/0.09859, allocations: 3.938 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.691e-05/0.09861, allocations: 4 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.09874, allocations: 51.88 kB / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09875, allocations: 0 / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09876, allocations: 0 / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.09877, allocations: 0 / 499.9 MB, free: 11.49 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.0002924/0.09907, allocations: 353.1 kB / 0.4885 GB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.09911, allocations: 11.89 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.578e-05/0.09914, allocations: 34.73 kB / 0.4886 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.09917, allocations: 4.891 kB / 0.4886 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.959e-05/0.09927, allocations: 168.4 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.09928, allocations: 384 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.776e-06/0.09929, allocations: 384 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.246e-05/0.09937, allocations: 30.27 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.09939, allocations: 7.938 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.0994, allocations: 3.938 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.09941, allocations: 0 / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.479e-05/0.09943, allocations: 0 / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.09955, allocations: 149.6 kB / 0.4889 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.45e-05/0.0996, allocations: 26.59 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.323e-05/0.09962, allocations: 4.859 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-06/0.09963, allocations: 0 / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.09968, allocations: 64.33 kB / 0.489 GB, free: 10.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.09968, allocations: 0 / 0.489 GB, free: 10.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001452/0.09983, allocations: 71.27 kB / 0.4891 GB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.09989, allocations: 77.23 kB / 0.4892 GB, free: 10.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.315e-05/0.09993, allocations: 93.86 kB / 0.4893 GB, free: 10.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.09995, allocations: 25.7 kB / 0.4893 GB, free: 10.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.09998, allocations: 80.14 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.1, allocations: 0 / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.1, allocations: 17.72 kB / 0.4894 GB, free: 10.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.594e-05/0.1001, allocations: 310.8 kB / 0.4897 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.1002, allocations: 3.984 kB / 0.4897 GB, free: 9.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.304e-06/0.1002, allocations: 4 kB / 0.4897 GB, free: 9.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.095e-05/0.1002, allocations: 60.33 kB / 0.4897 GB, free: 9.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1002, allocations: 0 / 0.4897 GB, free: 9.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.866e-05/0.1003, allocations: 67.34 kB / 0.4898 GB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.1003, allocations: 37.69 kB / 0.4898 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1004, allocations: 3.938 kB / 0.4898 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1004, allocations: 0 / 0.4898 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1004, allocations: 3.938 kB / 0.4898 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.1004, allocations: 0 / 0.4898 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.1004, allocations: 0 / 0.4898 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.1004, allocations: 4.031 kB / 0.4899 GB, free: 9.52 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 6.98e-05/0.1005, allocations: 139.5 kB / 0.49 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-06/0.1005, allocations: 0 / 0.49 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.384e-05/0.1005, allocations: 11.06 kB / 0.49 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1005, allocations: 0 / 0.49 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1005, allocations: 4 kB / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.1005, allocations: 0 / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.587e-05/0.1006, allocations: 149.7 kB / 0.4901 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1006, allocations: 3.938 kB / 0.4901 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1006, allocations: 4 kB / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1006, allocations: 0 / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.1007, allocations: 7.938 kB / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1007, allocations: 0 / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1007, allocations: 0 / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.996e-05/0.1008, allocations: 90.77 kB / 0.4902 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.75e-05/0.1008, allocations: 81.11 kB / 0.4903 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.1008, allocations: 3.938 kB / 0.4903 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-06/0.1008, allocations: 4.031 kB / 0.4903 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.1009, allocations: 3.984 kB / 0.4903 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1009, allocations: 0 / 0.4903 GB, free: 8.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.113e-05/0.1009, allocations: 79.28 kB / 0.4904 GB, free: 8.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1009, allocations: 0 / 0.4904 GB, free: 8.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1011, allocations: 15.94 kB / 0.4904 GB, free: 8.82 MB / 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.0005825/0.1017, allocations: 0.728 MB / 0.4911 GB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.85e-05/0.1018, allocations: 59.34 kB / 0.4912 GB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1018, allocations: 0 / 0.4912 GB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.926e-05/0.1019, allocations: 55.41 kB / 0.4912 GB, free: 7.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.102, allocations: 7.594 kB / 0.4913 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002623/0.1023, allocations: 126.3 kB / 0.4914 GB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.1025, allocations: 0.669 MB / 0.492 GB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.061e-06/0.1025, allocations: 3.938 kB / 0.492 GB, free: 7.074 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.1025, allocations: 11.56 kB / 0.492 GB, free: 7.062 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1025, allocations: 0 / 0.492 GB, free: 7.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.1196, allocations: 1.384 MB / 0.4934 GB, free: 5.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.158/7.278, allocations: 12.03 kB / 0.4934 GB, free: 5.652 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches