Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001408/0.001408, allocations: 182 kB / 17.56 MB, free: 6.203 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.571/1.571, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004717/0.0004716, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09992/0.1004, allocations: 47.57 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006687/0.1011, allocations: 224.4 kB / 328.5 MB, free: 3.555 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003059/0.1014, allocations: 53.27 kB / 328.6 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.261e-05/0.1015, allocations: 0 / 328.6 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.883e-05/0.1015, allocations: 0 / 328.6 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.1016, allocations: 15.92 kB / 328.6 MB, free: 3.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.1018, allocations: 19.97 kB / 328.6 MB, free: 3.469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.437e-05/0.1018, allocations: 31.92 kB / 328.6 MB, free: 3.438 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.2e-05/0.1019, allocations: 0 / 328.6 MB, free: 3.438 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.379e-05/0.102, allocations: 15.97 kB / 328.7 MB, free: 3.422 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.816e-05/0.102, allocations: 15.98 kB / 328.7 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1021, allocations: 0 / 328.7 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.216e-05/0.1021, allocations: 12 kB / 328.7 MB, free: 3.395 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.763e-05/0.1022, allocations: 3.938 kB / 328.7 MB, free: 3.391 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.091e-05/0.1023, allocations: 41.61 kB / 328.7 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.1024, allocations: 23.92 kB / 328.7 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1024, allocations: 0 / 328.7 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1024, allocations: 7.938 kB / 328.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1024, allocations: 0 / 328.8 MB, free: 3.312 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.0004284/0.1029, allocations: 353.5 kB / 329.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.1029, allocations: 12.03 kB / 329.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.103, allocations: 0.9375 kB / 329.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.1031, allocations: 180.2 kB / 329.3 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.1032, allocations: 384 / 329.3 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.1032, allocations: 384 / 329.3 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.1033, allocations: 62.23 kB / 329.4 MB, free: 2.617 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1033, allocations: 4.188 kB / 329.4 MB, free: 2.613 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1033, allocations: 3.938 kB / 329.4 MB, free: 2.609 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.1034, allocations: 0 / 329.4 MB, free: 2.609 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.377e-05/0.1034, allocations: 27.98 kB / 329.4 MB, free: 2.582 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.1036, allocations: 153.7 kB / 329.5 MB, free: 2.383 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.37e-05/0.1037, allocations: 50.5 kB / 329.6 MB, free: 2.324 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.685e-05/0.1037, allocations: 36.92 kB / 329.6 MB, free: 2.285 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.1038, allocations: 0 / 329.6 MB, free: 2.285 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/0.1038, allocations: 64.25 kB / 329.7 MB, free: 2.207 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 9.01e-07/0.1038, allocations: 4 kB / 329.7 MB, free: 2.203 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003582/0.1042, allocations: 183.3 kB / 329.9 MB, free: 2.012 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.1043, allocations: 81.05 kB / 329.9 MB, free: 1.914 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.1044, allocations: 117.8 kB / 330.1 MB, free: 1.789 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1044, allocations: 33.64 kB / 330.1 MB, free: 1.75 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.1045, allocations: 88.12 kB / 330.2 MB, free: 1.66 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.1045, allocations: 7.938 kB / 330.2 MB, free: 1.652 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.611e-05/0.1045, allocations: 17.7 kB / 330.2 MB, free: 1.629 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1047, allocations: 314.8 kB / 330.5 MB, free: 1.312 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.548e-05/0.1047, allocations: 27.98 kB / 330.5 MB, free: 1.285 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.788e-05/0.1048, allocations: 23.98 kB / 330.6 MB, free: 1.262 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.1049, allocations: 116.2 kB / 330.7 MB, free: 1.133 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1049, allocations: 4 kB / 330.7 MB, free: 1.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000167/0.1051, allocations: 151.4 kB / 330.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.1051, allocations: 33.64 kB / 330.9 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1051, allocations: 8 kB / 330.9 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1052, allocations: 4 kB / 330.9 MB, free: 0.918 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.1052, allocations: 0 / 330.9 MB, free: 0.918 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.1052, allocations: 3.984 kB / 330.9 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.391e-05/0.1052, allocations: 4 kB / 330.9 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.1052, allocations: 4 kB / 330.9 MB, free: 0.9062 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: 4 (success4,success3,success2,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.1054, allocations: 143.5 kB / 331 MB, free: 0.75 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.1054, allocations: 11.89 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.031e-05/0.1054, allocations: 7.844 kB / 331 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1054, allocations: 7.938 kB / 331.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1054, allocations: 0 / 331.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1055, allocations: 0 / 331.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.1056, allocations: 161.6 kB / 331.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1056, allocations: 0 / 331.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1056, allocations: 0 / 331.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1056, allocations: 0 / 331.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1056, allocations: 11.92 kB / 331.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1056, allocations: 0 / 331.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1056, allocations: 0 / 331.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.1058, allocations: 194.7 kB / 331.4 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.1059, allocations: 89 kB / 331.5 MB, free: 184 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.1059, allocations: 3.938 kB / 331.5 MB, free: 180 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.1059, allocations: 4 kB / 331.5 MB, free: 176 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.1059, allocations: 0 / 331.5 MB, free: 176 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.106, allocations: 0 / 331.5 MB, free: 176 kB / 270.1 MB Notification: Performance of sorting global known variables: time 4.343e-05/0.106, allocations: 99.45 kB / 331.6 MB, free: 76 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.106, allocations: 0 / 331.6 MB, free: 76 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001849/0.1062, allocations: 8 kB / 331.6 MB, free: 68 kB / 270.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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 (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.0002646/0.1065, allocations: 129.3 kB / 331.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.1066, allocations: 131.4 kB / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1066, allocations: 0 / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.502e-05/0.1067, allocations: 95.39 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1068, allocations: 0 / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002313/0.1071, allocations: 154.7 kB / 332.1 MB, free: 15.52 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.1073, allocations: 0.6809 MB / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.709e-06/0.1073, allocations: 0 / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.02e-05/0.1073, allocations: 7.438 kB / 332.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1073, allocations: 0 / 332.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Templates: time 0.002741/0.1101, allocations: 0.6463 MB / 333.4 MB, free: 14.16 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)