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.005326/0.005326, allocations: 99.86 kB / 15.87 MB, free: 6.309 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.001212/0.001212, allocations: 190 kB / 16.78 MB, free: 6.238 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.24/1.24, allocations: 205.1 MB / 222.6 MB, free: 4.578 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.302/0.302, allocations: 43.49 MB / 313.5 MB, free: 8.652 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.002014/0.002014, allocations: 67.91 kB / 382.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1226, allocations: 57.79 MB / 439.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001636/0.1243, allocations: 0.5347 MB / 440.5 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004529/0.1248, allocations: 214.8 kB / 440.7 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.017e-06/0.1248, allocations: 4 kB / 440.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.071e-05/0.1248, allocations: 0 / 440.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.865e-06/0.1248, allocations: 0 / 440.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001754/0.125, allocations: 31.91 kB / 440.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.377e-05/0.125, allocations: 4 kB / 440.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.484e-05/0.1251, allocations: 3.938 kB / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.151e-05/0.1251, allocations: 3.828 kB / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.379e-05/0.1251, allocations: 0 / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.488e-06/0.1251, allocations: 4 kB / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.544e-05/0.1252, allocations: 55.94 kB / 440.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.889e-06/0.1252, allocations: 0 / 440.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.284e-05/0.1252, allocations: 4 kB / 440.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.734e-05/0.1253, allocations: 43.94 kB / 440.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1253, allocations: 4 kB / 440.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.31e-07/0.1253, allocations: 0 / 440.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.385e-06/0.1253, allocations: 0 / 440.8 MB, free: 13.82 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.0002566/0.1256, allocations: 353.2 kB / 441.2 MB, free: 13.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.1256, allocations: 8.031 kB / 441.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.23e-05/0.1257, allocations: 30.75 kB / 441.2 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.665e-05/0.1257, allocations: 4.844 kB / 441.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.721e-05/0.1258, allocations: 164.4 kB / 441.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-06/0.1258, allocations: 4.375 kB / 441.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.1258, allocations: 4.375 kB / 441.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.029e-05/0.1259, allocations: 38.19 kB / 441.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.1259, allocations: 3.938 kB / 441.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-06/0.1259, allocations: 0 / 441.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-06/0.1259, allocations: 4 kB / 441.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.257e-05/0.1259, allocations: 0 / 441.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/0.126, allocations: 141.7 kB / 441.6 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.891e-05/0.126, allocations: 22.61 kB / 441.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.148e-05/0.1261, allocations: 12.78 kB / 441.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-06/0.1261, allocations: 0 / 441.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.1261, allocations: 64.2 kB / 441.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.1261, allocations: 64 / 441.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001181/0.1263, allocations: 67.33 kB / 441.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1263, allocations: 81.11 kB / 441.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.32e-05/0.1264, allocations: 97.97 kB / 441.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-06/0.1264, allocations: 25.7 kB / 441.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.119e-05/0.1264, allocations: 80.14 kB / 442 MB, free: 12.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.088e-05/0.1264, allocations: 4 kB / 442 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/0.1264, allocations: 13.72 kB / 442 MB, free: 12.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.1265, allocations: 310.8 kB / 442.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-06/0.1266, allocations: 0 / 442.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-06/0.1266, allocations: 0 / 442.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.972e-05/0.1266, allocations: 68.27 kB / 442.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1266, allocations: 0 / 442.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.418e-05/0.1267, allocations: 67.39 kB / 442.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.1267, allocations: 29.7 kB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1267, allocations: 3.938 kB / 442.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.1268, allocations: 4 kB / 442.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.375e-06/0.1268, allocations: 0 / 442.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1268, allocations: 7.922 kB / 442.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.184e-05/0.1268, allocations: 288 / 442.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.1268, allocations: 4.031 kB / 442.5 MB, free: 11.86 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.838e-05/0.1269, allocations: 139.5 kB / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-06/0.1269, allocations: 0 / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.141e-05/0.1269, allocations: 7.062 kB / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.1269, allocations: 0 / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1269, allocations: 0 / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.1269, allocations: 0 / 442.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.413e-05/0.127, allocations: 157.6 kB / 442.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.127, allocations: 3.938 kB / 442.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.127, allocations: 7.984 kB / 442.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.127, allocations: 0 / 442.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.127, allocations: 3.938 kB / 442.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.127, allocations: 0 / 442.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.127, allocations: 0 / 442.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.744e-05/0.1271, allocations: 90.83 kB / 442.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.832e-05/0.1272, allocations: 81.11 kB / 443 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.1272, allocations: 7.938 kB / 443 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.714e-06/0.1272, allocations: 4.031 kB / 443 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.109e-05/0.1272, allocations: 0 / 443 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.1272, allocations: 3.938 kB / 443 MB, free: 11.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.885e-05/0.1273, allocations: 75.28 kB / 443.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1273, allocations: 0 / 443.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001908/0.1275, allocations: 16 kB / 443.1 MB, free: 11.16 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.0005448/0.128, allocations: 0.7402 MB / 443.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.498e-05/0.1281, allocations: 59.39 kB / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.1281, allocations: 0 / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.875e-05/0.1281, allocations: 55.41 kB / 443.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001056/0.1282, allocations: 3.938 kB / 443.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002414/0.1285, allocations: 116.3 kB / 444.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.1287, allocations: 0.6731 MB / 444.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.538e-06/0.1287, allocations: 0 / 444.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.1288, allocations: 11.56 kB / 444.7 MB, free: 9.398 MB / 382.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1288, allocations: 0 / 444.7 MB, free: 9.398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2505/0.3793, allocations: 1.249 MB / 446 MB, free: 8.141 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003138/0.3797, allocations: 222.8 kB / 446.2 MB, free: 7.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/1.965, allocations: 3.938 kB / 446.2 MB, free: 7.887 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