Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) 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(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_DAEMode_SMIB_Examples_Example_1_Network2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_DAEMode_SMIB_Examples_Example_1_Network2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002318/0.002317, allocations: 178.3 kB / 7.455 MB, free: 2.508 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.095/1.095, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008095/0.0008095, allocations: 88.36 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05822/0.05822, allocations: 12.19 MB / 321.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.266/0.266, allocations: 78.05 MB / 449.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2172/0.4832, allocations: 76.09 MB / 0.5137 GB, free: 30.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.591, allocations: 69.23 MB / 0.5813 GB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2847/0.8757, allocations: 99.83 MB / 0.6788 GB, free: 8.992 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.8759, allocations: 76.95 kB / 0.6789 GB, free: 8.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.05732/0.9333, allocations: 22.91 MB / 0.7012 GB, free: 6.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.9333, allocations: 11.94 kB / 0.7012 GB, free: 6.078 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00237/0.9357, allocations: 413.4 kB / 0.7016 GB, free: 5.707 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.9369, allocations: 0.6694 MB / 0.7023 GB, free: 5.148 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.9372, allocations: 211.5 kB / 0.7025 GB, free: 4.906 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.9373, allocations: 39.91 kB / 0.7025 GB, free: 4.867 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001027/0.9383, allocations: 0.5954 MB / 0.7031 GB, free: 4.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.9394, allocations: 0.672 MB / 0.7038 GB, free: 4.051 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.9395, allocations: 0 / 0.7038 GB, free: 4.051 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.9396, allocations: 7.984 kB / 0.7038 GB, free: 4.043 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.9396, allocations: 13.09 kB / 0.7038 GB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005313/0.9449, allocations: 3.426 MB / 0.7071 GB, free: 1.301 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.9463, allocations: 0.7116 MB / 0.7078 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005401/0.9468, allocations: 388.1 kB / 0.7082 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.575e-05/0.9469, allocations: 12.64 kB / 0.7082 GB, free: 0.625 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.947, allocations: 42.84 kB / 0.7082 GB, free: 0.582 MB / 442.7 MB Notification: Performance of pre-optimization done (n=72): time 4.308e-06/0.947, allocations: 0 / 0.7082 GB, free: 0.582 MB / 442.7 MB Notification: Performance of matching and sorting (n=72): time 0.004896/0.9519, allocations: 1.77 MB / 0.71 GB, free: 15.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.9519, allocations: 81.77 kB / 0.7101 GB, free: 15.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008506/0.9528, allocations: 0.6244 MB / 0.7107 GB, free: 14.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.823e-05/0.9529, allocations: 29.64 kB / 0.7107 GB, free: 14.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.9531, allocations: 293.8 kB / 0.711 GB, free: 14.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.9533, allocations: 236.2 kB / 0.7112 GB, free: 14.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.9534, allocations: 4 kB / 0.7112 GB, free: 14.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.9535, allocations: 339.8 kB / 0.7115 GB, free: 13.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005251/0.954, allocations: 336.9 kB / 0.7118 GB, free: 13.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.9546, allocations: 431.2 kB / 0.7123 GB, free: 13.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005772/0.9552, allocations: 378.7 kB / 0.7126 GB, free: 13.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.9552, allocations: 0 / 0.7126 GB, free: 13.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00572/0.9609, allocations: 1.992 MB / 0.7146 GB, free: 11.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.9611, allocations: 0.6099 MB / 0.7152 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.9611, allocations: 8 kB / 0.7152 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004299/0.9655, allocations: 1.027 MB / 0.7162 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006945/0.9662, allocations: 107.7 kB / 0.7163 GB, free: 9.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007908/0.9741, allocations: 4.134 MB / 0.7203 GB, free: 6.715 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.9752, allocations: 103.3 kB / 0.7204 GB, free: 6.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.446e-05/0.9753, allocations: 27.12 kB / 0.7204 GB, free: 6.594 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/0.9753, allocations: 4 kB / 0.7204 GB, free: 6.59 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00552/0.9809, allocations: 1.866 MB / 0.7223 GB, free: 5.121 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.9809, allocations: 4 kB / 0.7223 GB, free: 5.117 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004158/0.9851, allocations: 1.032 MB / 0.7233 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006445/0.9857, allocations: 103.3 kB / 0.7234 GB, free: 4.117 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007835/0.9936, allocations: 4.14 MB / 0.7274 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.9947, allocations: 87.39 kB / 0.7275 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.9948, allocations: 35.48 kB / 0.7275 GB, free: 0.8164 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: G1.aVRtypeIII.vref:VARIABLE(unit = "1" fixed = false protected = true ) type: Real G1.order6.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: breaker1.vr.re:VARIABLE() "Real part of complex number" type: Real breaker1.vr.im:VARIABLE() "Imaginary part of complex number" type: Real breaker2.vr.im:VARIABLE() "Imaginary part of complex number" type: Real breaker2.vr.re:VARIABLE() "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (breaker1.Open,breaker2.Open) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 17} Notification: Performance of prepare postOptimizeDAE: time 0.000306/0.9951, allocations: 117.7 kB / 0.7276 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.9953, allocations: 90.88 kB / 0.7277 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004752/1, allocations: 1.83 MB / 0.7295 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/1, allocations: 4 kB / 0.7295 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/1, allocations: 8 kB / 0.7295 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/1, allocations: 3.984 kB / 0.7295 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006458/1.007, allocations: 3.053 MB / 0.7325 GB, free: 12.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/1.007, allocations: 8.047 kB / 0.7325 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006247/1.007, allocations: 83.91 kB / 0.7326 GB, free: 12.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002981/1.01, allocations: 0.8608 MB / 0.7334 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.06e-05/1.01, allocations: 0 / 0.7334 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005969/1.016, allocations: 3.271 MB / 0.7366 GB, free: 8.215 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.016, allocations: 4 kB / 0.7366 GB, free: 8.211 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005533/1.022, allocations: 2.422 MB / 0.739 GB, free: 5.738 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006371/1.028, allocations: 3.326 MB / 0.7423 GB, free: 2.371 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/1.029, allocations: 183.8 kB / 0.7424 GB, free: 2.172 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/1.029, allocations: 15.98 kB / 0.7424 GB, free: 2.156 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000814/1.03, allocations: 59.95 kB / 0.7425 GB, free: 2.098 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/1.03, allocations: 64.55 kB / 0.7426 GB, free: 2.035 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/1.03, allocations: 16 kB / 0.7426 GB, free: 2.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005942/1.03, allocations: 491.2 kB / 0.743 GB, free: 1.547 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002428/1.033, allocations: 490.9 kB / 0.7435 GB, free: 1.066 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (G1.order6.delta,G1.order6.w,G1.order6.e1q,G1.order6.e1d,G1.order6.e2q,G1.order6.e2d,G1.aVRtypeIII.vm,G1.aVRtypeIII.vr,G1.aVRtypeIII.vf1) * Number of discrete variables: 2 (breaker1.Open,breaker2.Open) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(13,35.5%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002773/1.033, allocations: 135 kB / 0.7436 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006539/1.04, allocations: 2.688 MB / 0.7463 GB, free: 14.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.04, allocations: 384 / 0.7463 GB, free: 14.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/1.042, allocations: 1.101 MB / 0.7473 GB, free: 12.97 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/1.043, allocations: 51.3 kB / 0.7474 GB, free: 12.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004151/1.047, allocations: 1.664 MB / 0.749 GB, free: 11.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/1.048, allocations: 1.085 MB / 0.7501 GB, free: 10.1 MB / 490.7 MB Notification: Performance of SimCode: time 4.51e-07/1.048, allocations: 0 / 0.7501 GB, free: 10.1 MB / 490.7 MB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_DAEMode_SMIB_Examples_Example_1_Network2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_DAEMode_SMIB_Examples_Example_1_Network2.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.DAEMode.SMIB_Examples.Example_1.Network2.pipe 2>&1)