Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.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) 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(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",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.0008796/0.0008796, allocations: 94.95 kB / 16.95 MB, free: 6.891 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.0008408/0.0008409, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.583/1.583, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.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.0004791/0.0004794, allocations: 12.94 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1028, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006612/0.1035, allocations: 216.4 kB / 328.6 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002593/0.1038, allocations: 53.3 kB / 328.7 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.97e-05/0.1039, allocations: 0 / 328.7 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.703e-05/0.1039, allocations: 4 kB / 328.7 MB, free: 3.723 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.083e-05/0.104, allocations: 7.984 kB / 328.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.1042, allocations: 27.97 kB / 328.7 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.818e-05/0.1042, allocations: 11.98 kB / 328.7 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.204e-05/0.1043, allocations: 8 kB / 328.8 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.265e-05/0.1044, allocations: 15.91 kB / 328.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.076e-05/0.1044, allocations: 19.92 kB / 328.8 MB, free: 3.633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.1045, allocations: 4 kB / 328.8 MB, free: 3.629 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.1045, allocations: 4 kB / 328.8 MB, free: 3.625 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.135e-05/0.1046, allocations: 4 kB / 328.8 MB, free: 3.621 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.542e-05/0.1046, allocations: 29.64 kB / 328.8 MB, free: 3.586 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.562e-05/0.1047, allocations: 19.97 kB / 328.8 MB, free: 3.566 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1047, allocations: 4 kB / 328.9 MB, free: 3.562 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1047, allocations: 0 / 328.9 MB, free: 3.562 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1047, allocations: 4 kB / 328.9 MB, free: 3.559 MB / 270.1 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.0003987/0.1051, allocations: 357.2 kB / 329.2 MB, free: 3.156 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1052, allocations: 8.031 kB / 329.2 MB, free: 3.148 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.731e-05/0.1053, allocations: 42.45 kB / 329.3 MB, free: 3.098 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.1053, allocations: 4 kB / 329.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.1055, allocations: 167 kB / 329.4 MB, free: 2.891 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1055, allocations: 0 / 329.4 MB, free: 2.891 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.1055, allocations: 11.95 kB / 329.4 MB, free: 2.879 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.1057, allocations: 73.61 kB / 329.5 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1057, allocations: 0 / 329.5 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.1057, allocations: 0 / 329.5 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1057, allocations: 4 kB / 329.5 MB, free: 2.797 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.078e-05/0.1058, allocations: 27.98 kB / 329.5 MB, free: 2.77 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.1061, allocations: 248.9 kB / 329.8 MB, free: 2.477 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.1062, allocations: 78.42 kB / 329.9 MB, free: 2.391 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.38e-05/0.1063, allocations: 48.91 kB / 329.9 MB, free: 2.34 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1063, allocations: 0 / 329.9 MB, free: 2.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.1064, allocations: 64.41 kB / 330 MB, free: 2.262 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.1064, allocations: 0 / 330 MB, free: 2.262 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003697/0.1068, allocations: 207.2 kB / 330.2 MB, free: 2.047 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.1069, allocations: 89.05 kB / 330.3 MB, free: 1.941 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.107, allocations: 114.1 kB / 330.4 MB, free: 1.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.107, allocations: 25.7 kB / 330.4 MB, free: 1.789 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.1071, allocations: 92.06 kB / 330.5 MB, free: 1.695 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.843e-05/0.1071, allocations: 11.81 kB / 330.5 MB, free: 1.684 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.1071, allocations: 0 / 330.5 MB, free: 1.684 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1073, allocations: 318.8 kB / 330.8 MB, free: 1.363 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.253e-05/0.1073, allocations: 27.98 kB / 330.8 MB, free: 1.336 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.006e-05/0.1074, allocations: 32.22 kB / 330.9 MB, free: 1.305 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.533e-05/0.1075, allocations: 65.75 kB / 330.9 MB, free: 1.234 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1075, allocations: 4 kB / 330.9 MB, free: 1.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002469/0.1077, allocations: 183.4 kB / 331.1 MB, free: 1.039 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.1078, allocations: 31.73 kB / 331.1 MB, free: 1.004 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1078, allocations: 4 kB / 331.1 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.1078, allocations: 7.938 kB / 331.2 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.368e-05/0.1079, allocations: 3.938 kB / 331.2 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1079, allocations: 0 / 331.2 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.308e-05/0.1079, allocations: 7.938 kB / 331.2 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.1079, allocations: 3.938 kB / 331.2 MB, free: 0.9766 MB / 270.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: 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.0001429/0.1081, allocations: 159.5 kB / 331.3 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.1081, allocations: 7.859 kB / 331.3 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.1082, allocations: 16.36 kB / 331.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1082, allocations: 0 / 331.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1082, allocations: 0 / 331.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1082, allocations: 0 / 331.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004549/0.1087, allocations: 436.2 kB / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1087, allocations: 0 / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-06/0.1087, allocations: 0 / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1087, allocations: 4 kB / 331.8 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1087, allocations: 4 kB / 331.8 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1087, allocations: 0 / 331.8 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1087, allocations: 0 / 331.8 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.1091, allocations: 293 kB / 332.1 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.1091, allocations: 81.11 kB / 332.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.1092, allocations: 0 / 332.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.919e-05/0.1092, allocations: 0 / 332.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.1092, allocations: 15.92 kB / 332.2 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.1093, allocations: 4 kB / 332.2 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.1093, allocations: 87.28 kB / 332.3 MB, free: 15.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1093, allocations: 0 / 332.3 MB, free: 15.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.1096, allocations: 12 kB / 332.3 MB, free: 15.76 MB / 286.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: 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.00103/0.1106, allocations: 0.9126 MB / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.1109, allocations: 147.3 kB / 333.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1109, allocations: 0 / 333.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.111, allocations: 103.4 kB / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.1112, allocations: 7.125 kB / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009732/0.1122, allocations: 0.5824 MB / 334 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.1127, allocations: 0.6809 MB / 334.7 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.972e-05/0.1127, allocations: 7.984 kB / 334.7 MB, free: 13.2 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.1127, allocations: 11.44 kB / 334.7 MB, free: 13.19 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1127, allocations: 0 / 334.7 MB, free: 13.19 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0153/0.128, allocations: 1.546 MB / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/0.1284, allocations: 229.6 kB / 336.5 MB, free: 11.4 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/1.886, allocations: 0 / 336.5 MB, free: 11.4 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat