Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002487/0.002493, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 98.81 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003838, allocations: 11.98 kB / 327 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1253, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006914/0.1261, allocations: 216.4 kB / 374.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002899/0.1264, allocations: 51.89 kB / 374.9 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.1264, allocations: 0 / 374.9 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.468e-05/0.1265, allocations: 3.938 kB / 374.9 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.722e-05/0.1266, allocations: 11.98 kB / 374.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.1267, allocations: 23.8 kB / 374.9 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.691e-05/0.1268, allocations: 19.97 kB / 374.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.754e-05/0.1269, allocations: 0 / 374.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.271e-05/0.1269, allocations: 8 kB / 375 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.095e-05/0.127, allocations: 23.89 kB / 375 MB, free: 15 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.127, allocations: 4 kB / 375 MB, free: 14.99 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.102e-05/0.1271, allocations: 8 kB / 375 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.1271, allocations: 0 / 375 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.1272, allocations: 33.7 kB / 375 MB, free: 14.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.316e-05/0.1273, allocations: 15.98 kB / 375 MB, free: 14.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1273, allocations: 0 / 375 MB, free: 14.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1273, allocations: 3.938 kB / 375 MB, free: 14.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1273, allocations: 0 / 375 MB, free: 14.93 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003804/0.1277, allocations: 353 kB / 375.4 MB, free: 14.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1278, allocations: 12.03 kB / 375.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.477e-05/0.1278, allocations: 46.61 kB / 375.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.1279, allocations: 8 kB / 375.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.128, allocations: 163 kB / 375.6 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1281, allocations: 4 kB / 375.6 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.1281, allocations: 7.953 kB / 375.6 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.1283, allocations: 73.66 kB / 375.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.1283, allocations: 0 / 375.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.1283, allocations: 0 / 375.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1283, allocations: 0 / 375.7 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.993e-05/0.1284, allocations: 43.86 kB / 375.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000334/0.1288, allocations: 252.9 kB / 376 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.1289, allocations: 62.55 kB / 376 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.129, allocations: 7.984 kB / 376 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.752e-05/0.129, allocations: 64.27 kB / 376.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.129, allocations: 0 / 376.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005135/0.1296, allocations: 281.7 kB / 376.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1296, allocations: 89.09 kB / 376.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.1298, allocations: 109.8 kB / 376.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1298, allocations: 25.7 kB / 376.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.1299, allocations: 158.6 kB / 376.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.1299, allocations: 11.75 kB / 376.8 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.1299, allocations: 8 kB / 376.8 MB, free: 12.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1301, allocations: 310.8 kB / 377.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.182e-05/0.1302, allocations: 35.97 kB / 377.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.898e-05/0.1302, allocations: 31.98 kB / 377.2 MB, free: 12.55 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.1304, allocations: 61.84 kB / 377.2 MB, free: 12.49 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.1304, allocations: 7.922 kB / 377.2 MB, free: 12.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002848/0.1307, allocations: 171.2 kB / 377.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.1307, allocations: 33.7 kB / 377.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1308, allocations: 0 / 377.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1308, allocations: 0 / 377.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.577e-05/0.1308, allocations: 4 kB / 377.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.1308, allocations: 448 / 377.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.268e-05/0.1309, allocations: 7.922 kB / 377.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.1309, allocations: 8 kB / 377.4 MB, free: 12.24 MB / 282.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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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.0001304/0.131, allocations: 143.5 kB / 377.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.1311, allocations: 11.86 kB / 377.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.1311, allocations: 16.36 kB / 377.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1312, allocations: 7.938 kB / 377.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1312, allocations: 0 / 377.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1312, allocations: 0 / 377.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000588/0.1318, allocations: 444.1 kB / 378 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1318, allocations: 0 / 378 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.205e-05/0.1318, allocations: 4 kB / 378.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1318, allocations: 0 / 378.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.1318, allocations: 0 / 378.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1319, allocations: 0 / 378.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.1319, allocations: 7.938 kB / 378.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.1322, allocations: 285.1 kB / 378.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-05/0.1323, allocations: 81.06 kB / 378.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.1323, allocations: 8 kB / 378.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.043e-05/0.1324, allocations: 0 / 378.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.1324, allocations: 7.984 kB / 378.4 MB, free: 11.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1325, allocations: 4 kB / 378.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.697e-05/0.1325, allocations: 83.28 kB / 378.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1326, allocations: 4 kB / 378.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003012/0.1329, allocations: 11.98 kB / 378.5 MB, free: 11.03 MB / 282.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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.001091/0.134, allocations: 0.9155 MB / 379.4 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.1343, allocations: 139.8 kB / 379.6 MB, free: 9.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1343, allocations: 4 kB / 379.6 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.1344, allocations: 107.4 kB / 379.7 MB, free: 9.809 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.1347, allocations: 7.938 kB / 379.7 MB, free: 9.801 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.1358, allocations: 0.5961 MB / 380.3 MB, free: 9.148 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1361, allocations: 0.6848 MB / 381 MB, free: 8.438 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.1362, allocations: 15.44 kB / 381 MB, free: 8.422 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1362, allocations: 4 kB / 381 MB, free: 8.418 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.618/2.754, allocations: 1.071 MB / 382.1 MB, free: 7.348 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat