Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001859/0.001859, allocations: 122.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002157/0.002158, allocations: 202 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.46/1.46, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 63.91 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2735, allocations: 50.54 MB / 409 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002118/0.2756, allocations: 496 kB / 409.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002431/0.2759, allocations: 51.81 kB / 409.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.562e-05/0.276, allocations: 0 / 409.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.276, allocations: 4 kB / 409.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.784e-05/0.2761, allocations: 19.91 kB / 409.6 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000144/0.2762, allocations: 15.98 kB / 409.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.843e-05/0.2763, allocations: 19.97 kB / 409.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.649e-05/0.2764, allocations: 3.984 kB / 409.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.518e-05/0.2764, allocations: 16 kB / 409.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.569e-05/0.2765, allocations: 31.89 kB / 409.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.2765, allocations: 0 / 409.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.2766, allocations: 4 kB / 409.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.2766, allocations: 7.938 kB / 409.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.2767, allocations: 11.94 kB / 409.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2768, allocations: 27.42 kB / 409.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2768, allocations: 0 / 409.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2768, allocations: 0 / 409.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.2768, allocations: 0 / 409.7 MB, free: 0.6797 MB / 318.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.0004502/0.2773, allocations: 372 kB / 410.1 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.2773, allocations: 12.03 kB / 410.1 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.578e-05/0.2774, allocations: 38.7 kB / 410.1 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.2775, allocations: 8.891 kB / 410.1 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.2776, allocations: 164.4 kB / 410.3 MB, free: 16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2777, allocations: 4.375 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.2777, allocations: 8.312 kB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.2779, allocations: 66.23 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2779, allocations: 7.875 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.2779, allocations: 7.938 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2779, allocations: 0 / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.037e-05/0.278, allocations: 35.98 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003037/0.2783, allocations: 252.8 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.2784, allocations: 70.44 kB / 410.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.019e-05/0.2785, allocations: 52.89 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.106e-06/0.2785, allocations: 0 / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/0.2786, allocations: 64.27 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2786, allocations: 0 / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003603/0.2789, allocations: 203.5 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.279, allocations: 81.11 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2791, allocations: 113.8 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2791, allocations: 29.69 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.216e-05/0.2792, allocations: 84.14 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.2792, allocations: 19.8 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.2793, allocations: 29.7 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2794, allocations: 314.8 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.97e-05/0.2795, allocations: 31.98 kB / 411.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.953e-05/0.2795, allocations: 31.98 kB / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.2797, allocations: 128.2 kB / 411.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2797, allocations: 0 / 411.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001925/0.2799, allocations: 179.6 kB / 412.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/0.28, allocations: 37.69 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.28, allocations: 0 / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.28, allocations: 7.984 kB / 412.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.243e-05/0.28, allocations: 8 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.28, allocations: 320 / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.742e-05/0.2801, allocations: 7.938 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.2801, allocations: 4 kB / 412.1 MB, free: 13.97 MB / 334.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 ($outputAlias_success4,success4,$outputAlias_success3,success3,$outputAlias_success2,success2,$outputAlias_success1,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.2802, allocations: 155.5 kB / 412.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.2803, allocations: 7.953 kB / 412.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.115e-05/0.2803, allocations: 8.375 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2803, allocations: 0 / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2803, allocations: 4 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2803, allocations: 4 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.2808, allocations: 436.1 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2808, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.621e-06/0.2808, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2808, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2809, allocations: 11.92 kB / 412.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2809, allocations: 0 / 412.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2809, allocations: 0 / 412.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.2812, allocations: 301.1 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.2812, allocations: 77.11 kB / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.2812, allocations: 4 kB / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.37e-05/0.2813, allocations: 0 / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.2813, allocations: 3.938 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2813, allocations: 8 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.066e-05/0.2814, allocations: 87.27 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2814, allocations: 0 / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.2817, allocations: 15.94 kB / 413.2 MB, free: 12.75 MB / 334.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 (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.0009117/0.2826, allocations: 0.9026 MB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.2828, allocations: 155.3 kB / 414.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2828, allocations: 0 / 414.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.155e-05/0.2829, allocations: 103.4 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.2831, allocations: 7.938 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.2846, allocations: 1.56 MB / 416 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.285, allocations: 0.6847 MB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.551e-05/0.285, allocations: 0 / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.571e-05/0.2851, allocations: 19.38 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2851, allocations: 0 / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.3079, allocations: 1.908 MB / 418.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.251, allocations: 7.859 kB / 418.6 MB, free: 7.371 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)