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.001171/0.001171, allocations: 102.9 kB / 15.98 MB, free: 6.348 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.001055/0.001055, allocations: 195.5 kB / 16.91 MB, free: 6.191 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.364/1.364, allocations: 205.1 MB / 222.8 MB, free: 4.672 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.3787/0.3787, allocations: 43.49 MB / 313.6 MB, free: 8.523 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.001385/0.001385, allocations: 70.56 kB / 382.3 MB, free: 8.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1121, allocations: 57.78 MB / 440.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001629/0.1138, allocations: 0.5464 MB / 440.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004763/0.1143, allocations: 214.8 kB / 440.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.938e-05/0.1143, allocations: 0 / 440.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.863e-05/0.1143, allocations: 0 / 440.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.559e-06/0.1143, allocations: 0 / 440.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.1146, allocations: 43.91 kB / 440.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.819e-05/0.1147, allocations: 0 / 440.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.382e-05/0.1147, allocations: 4 kB / 440.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.455e-05/0.1147, allocations: 0 / 440.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.342e-05/0.1148, allocations: 11.92 kB / 440.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.1148, allocations: 0 / 440.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.1149, allocations: 47.95 kB / 441 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-06/0.1149, allocations: 0 / 441 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.596e-05/0.1149, allocations: 4 kB / 441 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.634e-05/0.115, allocations: 43.94 kB / 441 MB, free: 13.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.115, allocations: 0 / 441 MB, free: 13.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.115, allocations: 4 kB / 441 MB, free: 13.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.115, allocations: 0 / 441 MB, free: 13.75 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.000294/0.1153, allocations: 349.3 kB / 441.3 MB, free: 13.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1154, allocations: 11.89 kB / 441.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.1154, allocations: 34.75 kB / 441.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.1155, allocations: 12.78 kB / 441.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.03e-05/0.1155, allocations: 160.4 kB / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1156, allocations: 384 / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.752e-06/0.1156, allocations: 4.312 kB / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.465e-05/0.1157, allocations: 38.25 kB / 441.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1157, allocations: 7.875 kB / 441.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.1157, allocations: 0 / 441.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1157, allocations: 0 / 441.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.1157, allocations: 3.984 kB / 441.6 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001283/0.1158, allocations: 149.7 kB / 441.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.794e-05/0.1159, allocations: 18.58 kB / 441.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.1159, allocations: 12.8 kB / 441.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.1159, allocations: 96 / 441.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.116, allocations: 64.25 kB / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.116, allocations: 0 / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000177/0.1162, allocations: 63.34 kB / 441.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.1162, allocations: 77.11 kB / 442 MB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.003e-05/0.1163, allocations: 93.86 kB / 442.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.1163, allocations: 25.7 kB / 442.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.917e-05/0.1163, allocations: 84.27 kB / 442.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.1164, allocations: 0 / 442.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.1164, allocations: 17.7 kB / 442.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1165, allocations: 310.8 kB / 442.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.1165, allocations: 3.938 kB / 442.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-06/0.1165, allocations: 4 kB / 442.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.864e-05/0.1166, allocations: 60.27 kB / 442.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1166, allocations: 8.062 kB / 442.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.099e-05/0.1167, allocations: 59.39 kB / 442.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.1167, allocations: 33.7 kB / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1167, allocations: 3.938 kB / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1168, allocations: 0 / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1168, allocations: 0 / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.1168, allocations: 0 / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.448e-05/0.1168, allocations: 288 / 442.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-06/0.1168, allocations: 0 / 442.7 MB, free: 11.79 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.087e-05/0.1169, allocations: 143.5 kB / 442.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.1169, allocations: 7.922 kB / 442.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.216e-05/0.1169, allocations: 11.06 kB / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1169, allocations: 4 kB / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1169, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.1169, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.383e-05/0.117, allocations: 145.6 kB / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.117, allocations: 0 / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.255e-06/0.117, allocations: 4 kB / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.1171, allocations: 0 / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1171, allocations: 11.92 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1171, allocations: 4 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1171, allocations: 3.938 kB / 443 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.509e-05/0.1172, allocations: 86.84 kB / 443.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.1172, allocations: 81.09 kB / 443.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.1173, allocations: 3.938 kB / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.1173, allocations: 0 / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.916e-06/0.1173, allocations: 0 / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.1173, allocations: 8.031 kB / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.633e-05/0.1173, allocations: 79.22 kB / 443.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1173, allocations: 0 / 443.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1175, allocations: 20 kB / 443.3 MB, free: 11.08 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.000624/0.1182, allocations: 0.7209 MB / 444 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.204e-05/0.1183, allocations: 55.41 kB / 444.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.1183, allocations: 4.062 kB / 444.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.1183, allocations: 67.33 kB / 444.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.1185, allocations: 4 kB / 444.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002828/0.1188, allocations: 122.5 kB / 444.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.119, allocations: 0.6767 MB / 444.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.119, allocations: 0 / 444.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.119, allocations: 7.438 kB / 444.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.119, allocations: 0 / 444.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01094/0.13, allocations: 1.292 MB / 446.2 MB, free: 8.031 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.1302, allocations: 226.8 kB / 446.5 MB, free: 7.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/1.888, allocations: 3.938 kB / 446.5 MB, free: 7.773 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