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.001017/0.001017, allocations: 99.23 kB / 16.94 MB, free: 5.98 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.001303/0.001303, allocations: 176.6 kB / 17.82 MB, free: 5.652 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.449/1.449, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004588/0.0004589, allocations: 8 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.106, allocations: 47.59 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005949/0.1066, allocations: 212.4 kB / 328.6 MB, free: 3.805 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002187/0.1069, allocations: 55.81 kB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.1069, allocations: 0 / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.1069, allocations: 7.938 kB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.294e-05/0.107, allocations: 11.98 kB / 328.7 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.1072, allocations: 15.98 kB / 328.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.585e-05/0.1072, allocations: 15.98 kB / 328.7 MB, free: 3.699 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.1073, allocations: 5.453 kB / 328.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.1073, allocations: 8 kB / 328.7 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.1074, allocations: 23.91 kB / 328.8 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1074, allocations: 0 / 328.8 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.211e-05/0.1075, allocations: 4 kB / 328.8 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.071e-05/0.1075, allocations: 7.984 kB / 328.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.27e-05/0.1075, allocations: 29.7 kB / 328.8 MB, free: 3.617 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 7.675e-05/0.1076, allocations: 15.98 kB / 328.8 MB, free: 3.602 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.1076, allocations: 0 / 328.8 MB, free: 3.602 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1077, allocations: 4 kB / 328.8 MB, free: 3.598 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1077, allocations: 3.938 kB / 328.8 MB, free: 3.594 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.0003875/0.1081, allocations: 357.2 kB / 329.2 MB, free: 3.191 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1081, allocations: 8.031 kB / 329.2 MB, free: 3.184 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/0.1082, allocations: 42.45 kB / 329.2 MB, free: 3.133 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.1082, allocations: 4 kB / 329.2 MB, free: 3.129 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.1083, allocations: 175 kB / 329.4 MB, free: 2.918 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.1084, allocations: 4 kB / 329.4 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1084, allocations: 3.953 kB / 329.4 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.1085, allocations: 77.61 kB / 329.5 MB, free: 2.828 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.1086, allocations: 0 / 329.5 MB, free: 2.828 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1086, allocations: 0 / 329.5 MB, free: 2.828 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1086, allocations: 3.938 kB / 329.5 MB, free: 2.824 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.984e-05/0.1086, allocations: 35.92 kB / 329.5 MB, free: 2.789 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002663/0.1089, allocations: 248.9 kB / 329.8 MB, free: 2.496 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.097e-05/0.109, allocations: 58.56 kB / 329.8 MB, free: 2.43 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.109, allocations: 12.06 kB / 329.8 MB, free: 2.418 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.1091, allocations: 64.19 kB / 329.9 MB, free: 2.34 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.1091, allocations: 0 / 329.9 MB, free: 2.34 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003882/0.1095, allocations: 280.4 kB / 330.2 MB, free: 2.035 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.1095, allocations: 81.11 kB / 330.2 MB, free: 1.938 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.1096, allocations: 114 kB / 330.4 MB, free: 1.816 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1097, allocations: 29.69 kB / 330.4 MB, free: 1.781 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.1097, allocations: 96.06 kB / 330.5 MB, free: 1.684 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.1098, allocations: 11.81 kB / 330.5 MB, free: 1.672 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.1098, allocations: 4 kB / 330.5 MB, free: 1.668 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1099, allocations: 318.8 kB / 330.8 MB, free: 1.348 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.918e-05/0.11, allocations: 27.98 kB / 330.8 MB, free: 1.32 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.867e-05/0.11, allocations: 39.92 kB / 330.9 MB, free: 1.281 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.419e-05/0.1101, allocations: 57.69 kB / 330.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1101, allocations: 0 / 330.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001863/0.1103, allocations: 175.2 kB / 331.1 MB, free: 1.035 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.1103, allocations: 33.7 kB / 331.1 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1103, allocations: 4 kB / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1104, allocations: 0 / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.968e-05/0.1104, allocations: 0 / 331.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.1104, allocations: 7.922 kB / 331.1 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.226e-05/0.1104, allocations: 7.938 kB / 331.2 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.1104, allocations: 448 / 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.0001098/0.1105, allocations: 147.5 kB / 331.3 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.837e-05/0.1106, allocations: 15.84 kB / 331.3 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.1106, allocations: 4.375 kB / 331.3 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.1106, allocations: 7.938 kB / 331.3 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1106, allocations: 0 / 331.3 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1106, allocations: 4 kB / 331.3 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.111, allocations: 440.2 kB / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1111, allocations: 0 / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-06/0.1111, allocations: 0 / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1111, allocations: 0 / 331.8 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1111, allocations: 7.938 kB / 331.8 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1111, allocations: 4 kB / 331.8 MB, free: 288 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1111, allocations: 3.938 kB / 331.8 MB, free: 284 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.1114, allocations: 281.1 kB / 332.1 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.351e-05/0.1114, allocations: 85.06 kB / 332.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1114, allocations: 4 kB / 332.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.414e-05/0.1115, allocations: 4 kB / 332.1 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.266e-05/0.1115, allocations: 3.984 kB / 332.1 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1115, allocations: 4 kB / 332.2 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.393e-05/0.1116, allocations: 95.27 kB / 332.2 MB, free: 15.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1116, allocations: 0 / 332.2 MB, free: 15.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000217/0.1118, 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.0007599/0.1126, allocations: 0.9186 MB / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001806/0.1128, allocations: 139.4 kB / 333.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1128, allocations: 0 / 333.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1129, allocations: 111.8 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.113, allocations: 4 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000782/0.1138, allocations: 0.5671 MB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.1142, allocations: 0.6887 MB / 334.7 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.607e-05/0.1142, allocations: 3.906 kB / 334.7 MB, free: 13.2 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.1142, allocations: 15.44 kB / 334.7 MB, free: 13.19 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1142, allocations: 4 kB / 334.7 MB, free: 13.18 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01139/0.1256, allocations: 1.528 MB / 336.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/0.1259, allocations: 228.5 kB / 336.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/1.883, allocations: 0 / 336.5 MB, free: 11.41 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