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.001161/0.001161, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.615/1.615, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001658/0.001658, allocations: 59.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3115, allocations: 46.63 MB / 325.3 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001908/0.3135, allocations: 496 kB / 325.8 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002677/0.3138, allocations: 65.94 kB / 325.8 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.932e-05/0.3138, allocations: 1.312 kB / 325.8 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.3139, allocations: 0 / 325.8 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 7.287e-05/0.3139, allocations: 11.48 kB / 325.9 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.3141, allocations: 27.41 kB / 325.9 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 9.587e-05/0.3142, allocations: 20.98 kB / 325.9 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.209e-05/0.3143, allocations: 9.297 kB / 325.9 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.881e-05/0.3143, allocations: 7.875 kB / 325.9 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.826e-05/0.3144, allocations: 25.75 kB / 325.9 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.3144, allocations: 1.562 kB / 325.9 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.819e-05/0.3145, allocations: 4.906 kB / 326 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 5.053e-05/0.3145, allocations: 10.39 kB / 326 MB, free: 1.348 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 3.525e-05/0.3146, allocations: 12.19 kB / 326 MB, free: 1.34 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 9.43e-05/0.3147, allocations: 19.17 kB / 326 MB, free: 1.332 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3147, allocations: 0 / 326 MB, free: 1.332 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3147, allocations: 1.156 kB / 326 MB, free: 1.332 MB / 254.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3147, allocations: 0 / 326 MB, free: 1.332 MB / 254.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.0003035/0.315, allocations: 374.8 kB / 326.4 MB, free: 0.9219 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3151, allocations: 10.16 kB / 326.4 MB, free: 0.9219 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.3151, allocations: 6.344 kB / 326.4 MB, free: 0.918 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.19e-05/0.3152, allocations: 165.7 kB / 326.5 MB, free: 0.7188 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3152, allocations: 5.469 kB / 326.5 MB, free: 0.7148 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.3152, allocations: 3.031 kB / 326.5 MB, free: 0.7148 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.3154, allocations: 62.08 kB / 326.6 MB, free: 0.6719 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3154, allocations: 1.719 kB / 326.6 MB, free: 0.6719 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3154, allocations: 3.938 kB / 326.6 MB, free: 0.668 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.3154, allocations: 0 / 326.6 MB, free: 0.668 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.197e-05/0.3154, allocations: 30.92 kB / 326.6 MB, free: 0.6602 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001046/0.3156, allocations: 154.9 kB / 326.8 MB, free: 476 kB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.482e-05/0.3156, allocations: 50.69 kB / 326.8 MB, free: 440 kB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.512e-05/0.3157, allocations: 39.75 kB / 326.9 MB, free: 420 kB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.3157, allocations: 1.312 kB / 326.9 MB, free: 420 kB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.3157, allocations: 57.64 kB / 326.9 MB, free: 348 kB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.3157, allocations: 4 kB / 326.9 MB, free: 344 kB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002928/0.316, allocations: 191.4 kB / 327.1 MB, free: 248 kB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.3161, allocations: 77.11 kB / 327.2 MB, free: 152 kB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.299e-05/0.3162, allocations: 109.5 kB / 327.3 MB, free: 44 kB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.3162, allocations: 27.45 kB / 327.3 MB, free: 12 kB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.3162, allocations: 84.08 kB / 327.4 MB, free: 15.93 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.3163, allocations: 15.66 kB / 327.4 MB, free: 15.91 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.3163, allocations: 20.73 kB / 327.5 MB, free: 15.89 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3164, allocations: 322.8 kB / 327.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.32e-05/0.3165, allocations: 25.8 kB / 327.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.458e-05/0.3165, allocations: 26.2 kB / 327.8 MB, free: 15.56 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.3166, allocations: 115.6 kB / 327.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3166, allocations: 0 / 327.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001752/0.3168, allocations: 152 kB / 328.1 MB, free: 15.4 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.3168, allocations: 32.64 kB / 328.1 MB, free: 15.37 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3169, allocations: 7.922 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.3169, allocations: 1.156 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3169, allocations: 0 / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3169, allocations: 4.062 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.255e-05/0.3169, allocations: 1.531 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.3169, allocations: 6.75 kB / 328.1 MB, free: 15.35 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 9.864e-05/0.317, allocations: 147.5 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.3171, allocations: 6.781 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.632e-05/0.3171, allocations: 9.281 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3171, allocations: 0.8438 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3171, allocations: 256 / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3171, allocations: 1.188 kB / 328.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.3172, allocations: 164.6 kB / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3172, allocations: 3.984 kB / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3172, allocations: 0 / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.3172, allocations: 1.562 kB / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3173, allocations: 5.375 kB / 328.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3173, allocations: 1.406 kB / 328.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3173, allocations: 0 / 328.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002165/0.3175, allocations: 191.7 kB / 328.7 MB, free: 14.85 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.3175, allocations: 86.39 kB / 328.7 MB, free: 14.75 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3176, allocations: 5.469 kB / 328.7 MB, free: 14.75 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.367e-05/0.3176, allocations: 1.344 kB / 328.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.3176, allocations: 4.875 kB / 328.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.3176, allocations: 2.219 kB / 328.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.927e-05/0.3177, allocations: 91.83 kB / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.3177, allocations: 0 / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000195/0.3179, allocations: 13.78 kB / 328.9 MB, free: 14.66 MB / 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.0002902/0.3182, allocations: 137.4 kB / 329 MB, free: 14.54 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001673/0.3184, allocations: 131.3 kB / 329.1 MB, free: 14.45 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3184, allocations: 1.438 kB / 329.1 MB, free: 14.45 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 7.564e-05/0.3184, allocations: 93.8 kB / 329.2 MB, free: 14.38 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.3186, allocations: 3.812 kB / 329.2 MB, free: 14.38 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.3189, allocations: 143.6 kB / 329.4 MB, free: 14.25 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.3191, allocations: 0.6793 MB / 330 MB, free: 13.55 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.554e-06/0.3191, allocations: 5.016 kB / 330 MB, free: 13.55 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.165e-05/0.3191, allocations: 7.438 kB / 330.1 MB, free: 13.54 MB / 270.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3191, allocations: 3.938 kB / 330.1 MB, free: 13.54 MB / 270.1 MB Notification: Performance of Templates: time 0.003267/0.3224, allocations: 0.6685 MB / 330.7 MB, free: 13.2 MB / 270.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)