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.0008486/0.0008487, allocations: 97.25 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000799/0.0007991, allocations: 181.9 kB / 16.92 MB, free: 6.934 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.3/1.3, allocations: 205.4 MB / 223.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3099/0.3099, allocations: 43.56 MB / 315 MB, free: 9.008 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.0004862/0.0004862, allocations: 16 kB / 384.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1152, allocations: 58.86 MB / 443.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005971/0.1158, allocations: 224.5 kB / 443.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005344/0.1164, allocations: 202.9 kB / 444 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.185e-05/0.1164, allocations: 0 / 444 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1164, allocations: 0 / 444 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.968e-06/0.1164, allocations: 4 kB / 444 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.1167, allocations: 35.91 kB / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.567e-05/0.1167, allocations: 4 kB / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.948e-05/0.1168, allocations: 0 / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.608e-05/0.1168, allocations: 0 / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.593e-05/0.1168, allocations: 0 / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.1168, allocations: 7.984 kB / 444 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.117, allocations: 55.88 kB / 444.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.314e-06/0.117, allocations: 0 / 444.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.743e-05/0.117, allocations: 29.64 kB / 444.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.942e-05/0.1171, allocations: 39.95 kB / 444.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1172, allocations: 8 kB / 444.1 MB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1172, allocations: 0 / 444.1 MB, free: 12.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.1172, allocations: 0 / 444.1 MB, free: 12.22 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.0002971/0.1175, allocations: 345.3 kB / 444.5 MB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1175, allocations: 8.031 kB / 444.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.1176, allocations: 34.75 kB / 444.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.1176, allocations: 8.844 kB / 444.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1177, allocations: 160.4 kB / 444.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1177, allocations: 4.359 kB / 444.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-06/0.1177, allocations: 4.375 kB / 444.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.626e-05/0.1178, allocations: 34.25 kB / 444.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1178, allocations: 3.938 kB / 444.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.1178, allocations: 0 / 444.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1179, allocations: 0 / 444.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.412e-05/0.1179, allocations: 7.875 kB / 444.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.118, allocations: 145.7 kB / 444.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.533e-05/0.118, allocations: 18.58 kB / 444.9 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.1181, allocations: 16.94 kB / 444.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-06/0.1181, allocations: 0 / 444.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.1181, allocations: 56.27 kB / 445 MB, free: 11.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.1181, allocations: 0 / 445 MB, free: 11.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001689/0.1183, allocations: 71.27 kB / 445 MB, free: 11.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.1184, allocations: 81.05 kB / 445.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.367e-05/0.1184, allocations: 97.84 kB / 445.2 MB, free: 10.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1185, allocations: 25.83 kB / 445.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.269e-05/0.1185, allocations: 84.14 kB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1185, allocations: 4 kB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.077e-05/0.1185, allocations: 9.719 kB / 445.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.841e-05/0.1186, allocations: 310.8 kB / 445.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-06/0.1187, allocations: 0 / 445.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.927e-06/0.1187, allocations: 0 / 445.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.531e-05/0.1187, allocations: 60.27 kB / 445.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1187, allocations: 8 kB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.349e-05/0.1188, allocations: 67.39 kB / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1188, allocations: 29.7 kB / 445.8 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1189, allocations: 7.938 kB / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1189, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1189, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1189, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1189, allocations: 288 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1189, allocations: 4 kB / 445.8 MB, free: 10.27 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 8.536e-05/0.119, allocations: 143.6 kB / 445.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-06/0.119, allocations: 0 / 445.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.215e-05/0.119, allocations: 7.062 kB / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1191, allocations: 0 / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1191, allocations: 0 / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1191, allocations: 4 kB / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.127e-05/0.1192, allocations: 149.6 kB / 446.1 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1192, allocations: 0 / 446.1 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-06/0.1192, allocations: 3.984 kB / 446.1 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.1192, allocations: 3.938 kB / 446.1 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.1192, allocations: 3.938 kB / 446.1 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1192, allocations: 8 kB / 446.1 MB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1192, allocations: 3.938 kB / 446.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.103e-05/0.1193, allocations: 82.84 kB / 446.2 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.1193, allocations: 85.09 kB / 446.3 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.1194, allocations: 3.938 kB / 446.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.1194, allocations: 0 / 446.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.1194, allocations: 0 / 446.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.1194, allocations: 4.031 kB / 446.3 MB, free: 9.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.469e-05/0.1194, allocations: 75.28 kB / 446.4 MB, free: 9.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1194, allocations: 4 kB / 446.4 MB, free: 9.586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.1197, allocations: 12 kB / 446.4 MB, free: 9.574 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.0006399/0.1203, allocations: 0.7386 MB / 447.1 MB, free: 8.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.749e-05/0.1204, allocations: 55.41 kB / 447.2 MB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1204, allocations: 4.062 kB / 447.2 MB, free: 8.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.939e-05/0.1205, allocations: 59.39 kB / 447.2 MB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.1206, allocations: 0 / 447.2 MB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002579/0.1209, allocations: 112.4 kB / 447.4 MB, free: 8.527 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1211, allocations: 0.677 MB / 448 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.411e-06/0.1211, allocations: 0 / 448 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.103e-05/0.1211, allocations: 7.438 kB / 448 MB, free: 7.816 MB / 382.1 MB Notification: Performance of SimCode: time 1.913e-06/0.1211, allocations: 0 / 448 MB, free: 7.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.1329, allocations: 1.171 MB / 449.2 MB, free: 6.664 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.1332, allocations: 230 kB / 449.4 MB, free: 6.406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/1.959, allocations: 0 / 449.4 MB, free: 6.406 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches