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.001847/0.001847, allocations: 103.4 kB / 16.27 MB, free: 6.41 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.001923/0.001923, allocations: 190.5 kB / 17.2 MB, free: 5.953 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.474/1.474, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2237/0.2237, allocations: 43.53 MB / 313.9 MB, free: 0.5156 MB / 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.001543/0.001544, allocations: 73.23 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1215, allocations: 57.78 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00174/0.1233, allocations: 497.4 kB / 441.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005366/0.1239, allocations: 213.6 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.244e-05/0.1239, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.1239, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.368e-06/0.1239, allocations: 0 / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.1242, allocations: 47.83 kB / 441.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.052e-05/0.1243, allocations: 0 / 441.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.1243, allocations: 4 kB / 441.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.52e-05/0.1243, allocations: 7.984 kB / 441.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.874e-05/0.1244, allocations: 0 / 441.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.1244, allocations: 0 / 441.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1245, allocations: 47.95 kB / 441.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.1245, allocations: 3.984 kB / 441.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.756e-05/0.1245, allocations: 0 / 441.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.92e-05/0.1246, allocations: 43.89 kB / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1246, allocations: 0 / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1246, allocations: 0 / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.1247, allocations: 0 / 441.5 MB, free: 5.969 MB / 318.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.0002309/0.1249, allocations: 361.2 kB / 441.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1249, allocations: 15.89 kB / 441.8 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.617e-05/0.125, allocations: 30.75 kB / 441.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.125, allocations: 0.9375 kB / 441.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.018e-05/0.1251, allocations: 167 kB / 442 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.1251, allocations: 384 / 442 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-06/0.1251, allocations: 4.312 kB / 442 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.64e-05/0.1252, allocations: 30.27 kB / 442.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.1252, allocations: 3.938 kB / 442.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-06/0.1252, allocations: 4 kB / 442.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1252, allocations: 0 / 442.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.523e-05/0.1252, allocations: 4 kB / 442.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.351e-05/0.1253, allocations: 145.7 kB / 442.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.285e-05/0.1253, allocations: 18.56 kB / 442.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.292e-05/0.1254, allocations: 12.89 kB / 442.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-06/0.1254, allocations: 0 / 442.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.1254, allocations: 60.27 kB / 442.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1254, allocations: 3.938 kB / 442.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.1256, allocations: 71.33 kB / 442.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.1256, allocations: 77.11 kB / 442.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.908e-05/0.1256, allocations: 93.8 kB / 442.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-06/0.1256, allocations: 29.7 kB / 442.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.09e-05/0.1257, allocations: 80.14 kB / 442.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.208e-05/0.1257, allocations: 3.938 kB / 442.6 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.1257, allocations: 13.84 kB / 442.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.1257, allocations: 318.8 kB / 443 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.1258, allocations: 3.938 kB / 443 MB, free: 4.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-06/0.1258, allocations: 4 kB / 443 MB, free: 4.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.024e-05/0.1258, allocations: 64.25 kB / 443 MB, free: 4.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1258, allocations: 0 / 443 MB, free: 4.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.97e-05/0.1259, allocations: 59.41 kB / 443.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.1259, allocations: 29.7 kB / 443.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1259, allocations: 8.031 kB / 443.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1259, allocations: 0 / 443.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1259, allocations: 0 / 443.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1259, allocations: 0 / 443.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.413e-05/0.126, allocations: 4 kB / 443.1 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.126, allocations: 3.984 kB / 443.1 MB, free: 3.996 MB / 318.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.693e-05/0.126, allocations: 143.4 kB / 443.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.1261, allocations: 4 kB / 443.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.648e-06/0.1261, allocations: 7.062 kB / 443.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1261, allocations: 4 kB / 443.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1261, allocations: 0 / 443.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1261, allocations: 3.984 kB / 443.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.701e-05/0.1261, allocations: 145.7 kB / 443.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1261, allocations: 4 kB / 443.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1262, allocations: 0 / 443.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.1262, allocations: 0 / 443.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1262, allocations: 3.938 kB / 443.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1262, allocations: 0 / 443.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1262, allocations: 0 / 443.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.292e-05/0.1262, allocations: 98.81 kB / 443.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.499e-05/0.1263, allocations: 77.11 kB / 443.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.1263, allocations: 7.875 kB / 443.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-06/0.1263, allocations: 4 kB / 443.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.256e-05/0.1263, allocations: 0 / 443.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.1263, allocations: 0 / 443.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.222e-05/0.1263, allocations: 83.22 kB / 443.7 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1263, allocations: 4.031 kB / 443.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.1266, allocations: 19.98 kB / 443.7 MB, free: 3.289 MB / 318.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.0004455/0.127, allocations: 0.7162 MB / 444.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.546e-05/0.1271, allocations: 67.39 kB / 444.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1271, allocations: 0 / 444.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.677e-05/0.1271, allocations: 55.34 kB / 444.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.1273, allocations: 9.812 kB / 444.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.1275, allocations: 114.6 kB / 444.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.47e-05/0.1276, allocations: 0.6729 MB / 445.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.979e-06/0.1276, allocations: 0 / 445.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.387e-06/0.1276, allocations: 7.438 kB / 445.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1276, allocations: 0 / 445.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.1448, allocations: 1.36 MB / 446.7 MB, free: 208 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.526, allocations: 8.609 kB / 446.7 MB, free: 204 kB / 318.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