Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Examples.Tutorial.Example_2.Example_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2") translateModel(OpenIPSL.Examples.Tutorial.Example_2.Example_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005612/0.005612, allocations: 168.1 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.3 MB / 239.1 MB, free: 1.723 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 101.2 kB / 290.3 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5214/0.5214, allocations: 78.61 MB / 420 MB, free: 44.18 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 15.94 kB / 499.9 MB, free: 2.891 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4925/0.4929, allocations: 69.35 MB / 0.5559 GB, free: 38.9 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_2.Example_2): time 0.005082/0.4981, allocations: 5.382 MB / 0.5612 GB, free: 38.02 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.5024, allocations: 2.056 MB / 0.5632 GB, free: 36.56 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001555/0.504, allocations: 9.844 kB / 0.5632 GB, free: 36.56 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008382/0.5049, allocations: 174.9 kB / 0.5633 GB, free: 36.49 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation Transformer.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.002379/0.5073, allocations: 0.6061 MB / 0.5639 GB, free: 36.1 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.509, allocations: 0.4987 MB / 0.5644 GB, free: 35.85 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002222/0.5112, allocations: 1.577 MB / 0.566 GB, free: 35.04 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.5117, allocations: 246.2 kB / 0.5662 GB, free: 34.95 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.5127, allocations: 0.5668 MB / 0.5668 GB, free: 34.72 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007865/0.5135, allocations: 0.6643 MB / 0.5674 GB, free: 34.45 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.5137, allocations: 59.59 kB / 0.5675 GB, free: 34.45 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005312/0.5142, allocations: 191.4 kB / 0.5676 GB, free: 34.4 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.5144, allocations: 243.7 kB / 0.5679 GB, free: 34.28 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.5147, allocations: 228.7 kB / 0.5681 GB, free: 34.12 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.5159, allocations: 1.511 MB / 0.5696 GB, free: 33.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.5159, allocations: 4 kB / 0.5696 GB, free: 33.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5159, allocations: 0 / 0.5696 GB, free: 33.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.5159, allocations: 0 / 0.5696 GB, free: 33.74 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006513/0.5224, allocations: 2.089 MB / 0.5716 GB, free: 32.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.5225, allocations: 11.69 kB / 0.5716 GB, free: 32.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003373/0.5259, allocations: 0.5615 MB / 0.5722 GB, free: 32.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.5277, allocations: 0.9546 MB / 0.5731 GB, free: 32.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.528, allocations: 244.4 kB / 0.5733 GB, free: 31.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.5281, allocations: 72.06 kB / 0.5734 GB, free: 31.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.53, allocations: 1.007 MB / 0.5744 GB, free: 31.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.53, allocations: 0 / 0.5744 GB, free: 31.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.5301, allocations: 29.75 kB / 0.5744 GB, free: 31.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.5301, allocations: 14.62 kB / 0.5744 GB, free: 31.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.532, allocations: 0.9673 MB / 0.5754 GB, free: 31.03 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005944/0.538, allocations: 3.682 MB / 0.579 GB, free: 28.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0144/0.5524, allocations: 4.284 MB / 0.5832 GB, free: 28.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.5538, allocations: 0.6241 MB / 0.5838 GB, free: 27.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-05/0.554, allocations: 12.83 kB / 0.5838 GB, free: 27.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.554, allocations: 40.75 kB / 0.5838 GB, free: 27.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=76): time 3.546e-06/0.554, allocations: 0 / 0.5838 GB, free: 27.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=76): time 0.01293/0.5669, allocations: 4.257 MB / 0.588 GB, free: 26.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.5671, allocations: 116.8 kB / 0.5881 GB, free: 26.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/0.5693, allocations: 1.156 MB / 0.5892 GB, free: 26.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002761/0.5696, allocations: 40.11 kB / 0.5893 GB, free: 26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003127/0.57, allocations: 479.1 kB / 0.5897 GB, free: 25.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/0.5703, allocations: 278.4 kB / 0.59 GB, free: 25.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.731e-05/0.5704, allocations: 23.12 kB / 0.59 GB, free: 25.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.5704, allocations: 348.9 kB / 0.5903 GB, free: 25.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5719, allocations: 0.6872 MB / 0.591 GB, free: 24.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/0.5736, allocations: 0.8149 MB / 0.5918 GB, free: 24.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.5753, allocations: 0.7517 MB / 0.5925 GB, free: 24.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.5753, allocations: 1.062 kB / 0.5925 GB, free: 24.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.009405/0.5847, allocations: 3.13 MB / 0.5956 GB, free: 23.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.154e-05/0.5848, allocations: 134.9 kB / 0.5957 GB, free: 23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.5849, allocations: 1.219 kB / 0.5957 GB, free: 23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005048/0.5899, allocations: 1.267 MB / 0.597 GB, free: 22.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/0.5915, allocations: 223.4 kB / 0.5972 GB, free: 22.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/0.6044, allocations: 5.393 MB / 0.6024 GB, free: 19.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002254/0.6066, allocations: 192.3 kB / 0.6026 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.6068, allocations: 38.3 kB / 0.6027 GB, free: 19.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.6068, allocations: 3.562 kB / 0.6027 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009804/0.6166, allocations: 2.938 MB / 0.6055 GB, free: 19.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.6167, allocations: 1.125 kB / 0.6055 GB, free: 19.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005649/0.6224, allocations: 1.274 MB / 0.6068 GB, free: 18.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.624, allocations: 205.6 kB / 0.607 GB, free: 18.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/0.6362, allocations: 5.373 MB / 0.6122 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.6382, allocations: 175.2 kB / 0.6124 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.138e-05/0.6383, allocations: 35.75 kB / 0.6124 GB, free: 15.41 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: G1.avr.vref:VARIABLE(unit = "1" fixed = true protected = true ) 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 115 * 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 {8 13} Notification: Performance of prepare postOptimizeDAE: time 0.000638/0.639, allocations: 359.7 kB / 0.6128 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.6392, allocations: 114.5 kB / 0.6129 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007202/0.6464, allocations: 2.645 MB / 0.6154 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6464, allocations: 7.938 kB / 0.6155 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6464, allocations: 7.984 kB / 0.6155 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.6465, allocations: 4 kB / 0.6155 GB, free: 12.71 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008713/0.6552, allocations: 4.229 MB / 0.6196 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.6552, allocations: 4 kB / 0.6196 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.6561, allocations: 115.8 kB / 0.6197 GB, free: 8.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003293/0.6594, allocations: 1.089 MB / 0.6208 GB, free: 7.176 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.6595, allocations: 19.95 kB / 0.6208 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007468/0.667, allocations: 4.137 MB / 0.6248 GB, free: 2.883 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.667, allocations: 4.031 kB / 0.6248 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008652/0.6757, allocations: 3.446 MB / 0.6282 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006321/0.6764, allocations: 231.4 kB / 0.6284 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.6766, allocations: 16 kB / 0.6284 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6778, allocations: 127.9 kB / 0.6286 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/0.6782, allocations: 136.4 kB / 0.6287 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.6783, allocations: 23.98 kB / 0.6287 GB, free: 14.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001602/0.6799, allocations: 0.8075 MB / 0.6295 GB, free: 14.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6799, allocations: 0 / 0.6295 GB, free: 14.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002015/0.6819, allocations: 0.593 MB / 0.6301 GB, free: 13.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (G1.avr.vm,G1.avr.vr,G1.avr.vf1,G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d,G1.pss.imLeadLag.TF.x_scaled[1],G1.pss.imLeadLag1.TF.x_scaled[1],G1.pss.derivativeLag.TF.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * 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 {(9,48.1%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002845/0.6822, allocations: 124.7 kB / 0.6302 GB, free: 13.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009851/0.6921, allocations: 3.899 MB / 0.634 GB, free: 9.316 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.6921, allocations: 0 / 0.634 GB, free: 9.316 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003478/0.6956, allocations: 1.377 MB / 0.6354 GB, free: 7.879 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.6967, allocations: 116.9 kB / 0.6355 GB, free: 7.766 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.7016, allocations: 2.718 MB / 0.6381 GB, free: 5.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.7023, allocations: 1.082 MB / 0.6392 GB, free: 3.906 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008705/0.7032, allocations: 146.8 kB / 0.6393 GB, free: 3.758 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.7035, allocations: 67.42 kB / 0.6394 GB, free: 3.695 MB / 442.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7035, allocations: 0 / 0.6394 GB, free: 3.695 MB / 442.7 MB Notification: Performance of Templates: time 0.03537/0.7389, allocations: 22.21 MB / 0.6611 GB, free: 13.55 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & ./OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)