Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007976/0.007981, allocations: 97.2 kB / 15.73 MB, free: 6.035 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.00184/0.001841, allocations: 201.5 kB / 16.68 MB, free: 5.961 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.566/1.566, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.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.001226/0.001226, allocations: 52.44 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1148, allocations: 46.62 MB / 373.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001729/0.1166, allocations: 495.1 kB / 373.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002776/0.1169, allocations: 55.8 kB / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.402e-05/0.1169, allocations: 0 / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.961e-05/0.117, allocations: 3.938 kB / 373.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.644e-05/0.1171, allocations: 15.97 kB / 373.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.1173, allocations: 19.98 kB / 373.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.1174, allocations: 23.92 kB / 373.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.13e-05/0.1175, allocations: 7.984 kB / 373.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.615e-05/0.1175, allocations: 11.98 kB / 373.8 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.3e-05/0.1176, allocations: 31.91 kB / 373.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.1176, allocations: 0 / 373.8 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.886e-05/0.1177, allocations: 4 kB / 373.8 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.1177, allocations: 4 kB / 373.8 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.736e-05/0.1178, allocations: 11.92 kB / 373.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.1179, allocations: 27.86 kB / 373.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1179, allocations: 0 / 373.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1179, allocations: 3.938 kB / 373.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1179, allocations: 4 kB / 373.8 MB, free: 0.6562 MB / 302.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.0003963/0.1183, allocations: 361.1 kB / 374.2 MB, free: 252 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1184, allocations: 12.02 kB / 374.2 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.1184, allocations: 8.891 kB / 374.2 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.1185, allocations: 164.3 kB / 374.4 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1186, allocations: 4.375 kB / 374.4 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.1186, allocations: 384 / 374.4 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.1187, allocations: 70.14 kB / 374.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1187, allocations: 192 / 374.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.1187, allocations: 15.94 kB / 374.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1188, allocations: 0 / 374.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.89e-05/0.1188, allocations: 23.98 kB / 374.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000148/0.119, allocations: 161.7 kB / 374.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.641e-05/0.119, allocations: 42.58 kB / 374.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.566e-05/0.1191, allocations: 28.92 kB / 374.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.1191, allocations: 4 kB / 374.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.1191, allocations: 68.19 kB / 374.8 MB, free: 15.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.1191, allocations: 0 / 374.8 MB, free: 15.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002776/0.1194, allocations: 187.2 kB / 375 MB, free: 15.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.1195, allocations: 81.11 kB / 375 MB, free: 15.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.673e-05/0.1196, allocations: 113.8 kB / 375.2 MB, free: 15.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1196, allocations: 25.7 kB / 375.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.1196, allocations: 84.14 kB / 375.3 MB, free: 15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.1197, allocations: 3.953 kB / 375.3 MB, free: 15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.1197, allocations: 26.08 kB / 375.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.1198, allocations: 314.8 kB / 375.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.6e-05/0.1198, allocations: 28.23 kB / 375.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.852e-05/0.1199, allocations: 27.98 kB / 375.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.025e-05/0.12, allocations: 124.2 kB / 375.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.12, allocations: 0 / 375.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001446/0.1201, allocations: 151.4 kB / 375.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.1202, allocations: 33.7 kB / 376 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1202, allocations: 3.938 kB / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.1202, allocations: 4.062 kB / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1202, allocations: 0 / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.788e-06/0.1202, allocations: 0 / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.285e-05/0.1202, allocations: 11.94 kB / 376 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1203, allocations: 0 / 376 MB, free: 14.24 MB / 318.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 9.114e-05/0.1204, allocations: 139.5 kB / 376.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.1204, allocations: 7.984 kB / 376.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.638e-05/0.1204, allocations: 15.78 kB / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1204, allocations: 3.938 kB / 376.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1204, allocations: 4 kB / 376.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1204, allocations: 0 / 376.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.805e-05/0.1205, allocations: 161.6 kB / 376.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1205, allocations: 0 / 376.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-07/0.1205, allocations: 0 / 376.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1205, allocations: 0 / 376.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.1206, allocations: 11.92 kB / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1206, allocations: 4 kB / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1206, allocations: 0 / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.1208, allocations: 198.9 kB / 376.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.062e-05/0.1208, allocations: 81.09 kB / 376.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.1208, allocations: 7.938 kB / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.213e-05/0.1208, allocations: 0 / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.458e-05/0.1209, allocations: 0 / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.1209, allocations: 4 kB / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.434e-05/0.1209, allocations: 95.27 kB / 376.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1209, allocations: 0 / 376.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001854/0.1211, allocations: 11.94 kB / 376.7 MB, free: 13.39 MB / 318.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.0002572/0.1214, allocations: 131 kB / 376.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000193/0.1216, allocations: 131.3 kB / 377 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.1216, allocations: 0 / 377 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.73e-05/0.1217, allocations: 95.39 kB / 377.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.1219, allocations: 4 kB / 377.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002621/0.1222, allocations: 148.9 kB / 377.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.1224, allocations: 0.6807 MB / 377.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.1224, allocations: 0 / 377.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.001e-05/0.1224, allocations: 7.438 kB / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1224, allocations: 0 / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Templates: time 0.002825/0.1253, allocations: 0.685 MB / 378.6 MB, free: 11.43 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)