Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01467/0.01467, allocations: 107.2 kB / 15.06 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00191/0.00191, allocations: 179.4 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.008/2.008, allocations: 194.6 MB / 211.3 MB, free: 10.97 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2752/0.2752, allocations: 40.04 MB / 296.5 MB, free: 6.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000666/0.0006663, allocations: 8 kB / 361.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1288, allocations: 54.88 MB / 416 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006643/0.1296, allocations: 212.5 kB / 416.2 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006085/0.1302, allocations: 193.1 kB / 416.4 MB, free: 2.172 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.865e-05/0.1302, allocations: 4 kB / 416.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.227e-06/0.1302, allocations: 0 / 416.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.1303, allocations: 0 / 416.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.1305, allocations: 39.83 kB / 416.5 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.13e-05/0.1306, allocations: 0 / 416.5 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.048e-05/0.1306, allocations: 7.984 kB / 416.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.672e-05/0.1307, allocations: 7.938 kB / 416.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.468e-05/0.1307, allocations: 0 / 416.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.1307, allocations: 0 / 416.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1308, allocations: 35.97 kB / 416.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.583e-06/0.1309, allocations: 0 / 416.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.653e-05/0.1309, allocations: 33.7 kB / 416.5 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.131, allocations: 31.83 kB / 416.6 MB, free: 2.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.131, allocations: 0 / 416.6 MB, free: 2.008 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.131, allocations: 0 / 416.6 MB, free: 2.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.1311, allocations: 0 / 416.6 MB, free: 2.008 MB / 346.7 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.0003376/0.1314, allocations: 353.1 kB / 416.9 MB, free: 1.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1315, allocations: 8.031 kB / 416.9 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.1315, allocations: 30.56 kB / 417 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.249e-05/0.1315, allocations: 0 / 417 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1317, allocations: 159.1 kB / 417.1 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1317, allocations: 8 kB / 417.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.1317, allocations: 0 / 417.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.628e-05/0.1318, allocations: 33.64 kB / 417.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1318, allocations: 0 / 417.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.1318, allocations: 4 kB / 417.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1319, allocations: 0 / 417.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.193e-05/0.1319, allocations: 3.938 kB / 417.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.132, allocations: 145.7 kB / 417.3 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.458e-05/0.1321, allocations: 22.61 kB / 417.3 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.1321, allocations: 3.984 kB / 417.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.1322, allocations: 60.25 kB / 417.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.542e-06/0.1322, allocations: 0 / 417.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001888/0.1324, allocations: 67.36 kB / 417.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.1325, allocations: 81.11 kB / 417.5 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.488e-05/0.1325, allocations: 89.86 kB / 417.6 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.1326, allocations: 33.83 kB / 417.6 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.1326, allocations: 80.14 kB / 417.7 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.1326, allocations: 3.984 kB / 417.7 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.1327, allocations: 3.938 kB / 417.7 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1328, allocations: 310.8 kB / 418 MB, free: 304 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.1328, allocations: 0 / 418 MB, free: 304 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.047e-05/0.1328, allocations: 4 kB / 418 MB, free: 300 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.244e-05/0.1329, allocations: 25.7 kB / 418.1 MB, free: 268 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1329, allocations: 0 / 418.1 MB, free: 268 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001175/0.133, allocations: 71.38 kB / 418.1 MB, free: 184 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.283e-05/0.1331, allocations: 33.69 kB / 418.2 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1331, allocations: 3.938 kB / 418.2 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1331, allocations: 3.938 kB / 418.2 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.382e-06/0.1331, allocations: 0 / 418.2 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1331, allocations: 7.953 kB / 418.2 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.074e-05/0.1332, allocations: 0 / 418.2 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.1332, allocations: 4 kB / 418.2 MB, free: 124 kB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.1333, allocations: 139.6 kB / 418.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.1333, allocations: 0 / 418.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.683e-05/0.1334, allocations: 7.078 kB / 418.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1334, allocations: 0 / 418.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1334, allocations: 3.984 kB / 418.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1334, allocations: 3.953 kB / 418.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.1335, allocations: 145.7 kB / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1336, allocations: 0 / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.1336, allocations: 0 / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1336, allocations: 0 / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.1336, allocations: 0 / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1336, allocations: 4 kB / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1336, allocations: 0 / 418.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.1338, allocations: 102.7 kB / 418.6 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.1338, allocations: 77.11 kB / 418.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.1338, allocations: 0 / 418.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.499e-05/0.1339, allocations: 7.984 kB / 418.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/0.1339, allocations: 0 / 418.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.1339, allocations: 4.031 kB / 418.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.652e-05/0.134, allocations: 75.28 kB / 418.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.134, allocations: 0 / 418.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002998/0.1343, allocations: 16 kB / 418.8 MB, free: 15.44 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008597/0.1351, allocations: 0.7421 MB / 419.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.1353, allocations: 59.34 kB / 419.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1353, allocations: 4.062 kB / 419.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.445e-05/0.1354, allocations: 59.34 kB / 419.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001055/0.1355, allocations: 0 / 419.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003558/0.1359, allocations: 120.3 kB / 419.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.1362, allocations: 0.677 MB / 420.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.1362, allocations: 0 / 420.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.1362, allocations: 7.438 kB / 420.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.352e-06/0.1362, allocations: 0 / 420.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.1608, allocations: 1.141 MB / 421.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003527/0.1612, allocations: 213.6 kB / 421.8 MB, free: 12.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.546/2.707, allocations: 0 / 421.8 MB, free: 12.35 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat