Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001428/0.001428, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.933/1.933, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 93.44 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.2e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.331, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.4742, allocations: 85.63 MB / 448.1 MB, free: 0.5742 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.4746, allocations: 71.97 kB / 448.1 MB, free: 0.5039 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1499/0.6245, allocations: 35.79 MB / 483.9 MB, free: 12.73 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6245, allocations: 0 / 483.9 MB, free: 12.73 MB / 379.1 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.6246, allocations: 16 kB / 483.9 MB, free: 12.72 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002343/0.6269, allocations: 1.188 MB / 485.1 MB, free: 11.48 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.627, allocations: 8.031 kB / 485.1 MB, free: 11.47 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.6272, allocations: 130.4 kB / 485.3 MB, free: 11.34 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.6287, allocations: 0.715 MB / 486 MB, free: 10.58 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.6288, allocations: 11.94 kB / 486 MB, free: 10.57 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/0.6289, allocations: 15.91 kB / 486 MB, free: 10.55 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005419/0.6294, allocations: 201 kB / 486.2 MB, free: 10.36 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.6301, allocations: 265.8 kB / 486.5 MB, free: 10.08 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.6301, allocations: 0 / 486.5 MB, free: 10.08 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.6301, allocations: 0 / 486.5 MB, free: 10.08 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.6302, allocations: 4 kB / 486.5 MB, free: 10.07 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.6329, allocations: 1.128 MB / 487.6 MB, free: 8.906 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.6334, allocations: 222.5 kB / 487.8 MB, free: 8.68 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006638/0.634, allocations: 276.8 kB / 488.1 MB, free: 8.406 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002011/0.6361, allocations: 1.275 MB / 489.3 MB, free: 6.875 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.6361, allocations: 38.5 kB / 489.4 MB, free: 6.828 MB / 379.1 MB Notification: Performance of pre-optimization done (n=38): time 2.585e-06/0.6361, allocations: 4 kB / 489.4 MB, free: 6.824 MB / 379.1 MB Notification: Performance of matching and sorting (n=39): time 0.00359/0.6397, allocations: 1.154 MB / 490.5 MB, free: 5.613 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/0.6398, allocations: 114.8 kB / 490.7 MB, free: 5.477 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.6412, allocations: 0.709 MB / 491.4 MB, free: 4.762 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 4.245e-05/0.6412, allocations: 29.64 kB / 491.4 MB, free: 4.727 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000343/0.6416, allocations: 352.1 kB / 491.7 MB, free: 4.383 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.6418, allocations: 130 kB / 491.9 MB, free: 4.254 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.6418, allocations: 0 / 491.9 MB, free: 4.254 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6419, allocations: 326.8 kB / 492.2 MB, free: 3.926 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.6422, allocations: 100.3 kB / 492.3 MB, free: 3.824 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003049/0.6425, allocations: 134.8 kB / 492.4 MB, free: 3.684 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/0.6431, allocations: 140 kB / 492.5 MB, free: 3.547 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6431, allocations: 0 / 492.5 MB, free: 3.547 MB / 379.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001223/0.6443, allocations: 390.8 kB / 492.9 MB, free: 3.152 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.6444, allocations: 47 kB / 493 MB, free: 3.102 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.686e-05/0.6445, allocations: 15.98 kB / 493 MB, free: 3.086 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003253/0.6448, allocations: 61.69 kB / 493.1 MB, free: 3.02 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.6452, allocations: 39.97 kB / 493.1 MB, free: 2.98 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/0.6484, allocations: 2.899 MB / 496 MB, free: 15.85 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.649, allocations: 7.984 kB / 496 MB, free: 15.84 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-05/0.6491, allocations: 24.06 kB / 496 MB, free: 15.82 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.6493, allocations: 150.5 kB / 496.2 MB, free: 15.66 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001422/0.6507, allocations: 0.4975 MB / 496.7 MB, free: 15.14 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.6509, allocations: 130.4 kB / 496.8 MB, free: 15.02 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.6532, allocations: 0.5978 MB / 497.4 MB, free: 14.4 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.6532, allocations: 7.953 kB / 497.4 MB, free: 14.39 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.6532, allocations: 0 / 497.4 MB, free: 14.39 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.6532, allocations: 3.984 kB / 497.4 MB, free: 14.39 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.6543, allocations: 0.5561 MB / 498 MB, free: 13.8 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-05/0.6543, allocations: 15.98 kB / 498 MB, free: 13.79 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.6547, allocations: 35.92 kB / 498 MB, free: 13.75 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003027/0.655, allocations: 69.67 kB / 498.1 MB, free: 13.68 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.123e-05/0.6551, allocations: 12 kB / 498.1 MB, free: 13.67 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003119/0.6582, allocations: 2.894 MB / 0.4892 GB, free: 10.54 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.6582, allocations: 0 / 0.4892 GB, free: 10.54 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.6603, allocations: 0.7709 MB / 0.49 GB, free: 9.746 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006531/0.661, allocations: 283.4 kB / 0.4903 GB, free: 9.449 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.6611, allocations: 7.984 kB / 0.4903 GB, free: 9.441 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.6616, allocations: 8 kB / 0.4903 GB, free: 9.434 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.6618, allocations: 31.95 kB / 0.4903 GB, free: 9.402 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/0.6619, allocations: 12 kB / 0.4903 GB, free: 9.391 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001054/0.6629, allocations: 0.5477 MB / 0.4909 GB, free: 8.84 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6629, allocations: 0 / 0.4909 GB, free: 8.84 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001301/0.6642, allocations: 239.8 kB / 0.4911 GB, free: 8.605 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003161/0.6674, allocations: 1.623 MB / 0.4927 GB, free: 6.953 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.6688, allocations: 0.7015 MB / 0.4934 GB, free: 6.195 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6688, allocations: 0 / 0.4934 GB, free: 6.195 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.6697, allocations: 0.5718 MB / 0.4939 GB, free: 5.566 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.6704, allocations: 89.42 kB / 0.494 GB, free: 5.48 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.6738, allocations: 1.295 MB / 0.4953 GB, free: 4.133 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007996/0.6746, allocations: 1.023 MB / 0.4963 GB, free: 3.086 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/0.6751, allocations: 271.3 kB / 0.4965 GB, free: 2.82 MB / 395.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6751, allocations: 0 / 0.4965 GB, free: 2.82 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.082/3.757, allocations: 19.42 MB / 0.5155 GB, free: 104.4 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)