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.001357/0.001357, allocations: 176.2 kB / 16.07 MB, free: 5.695 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.324/1.324, allocations: 222.9 MB / 239.7 MB, free: 10.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007504/0.0007504, allocations: 93 kB / 290.4 MB, free: 11.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4257/0.4257, allocations: 78.43 MB / 419.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003409, allocations: 8 kB / 499.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2572, allocations: 68.75 MB / 0.5545 GB, free: 20.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Tutorial.Example_2.Example_2): time 0.004614/0.2618, allocations: 6.176 MB / 0.5605 GB, free: 14.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.2647, allocations: 2.176 MB / 0.5627 GB, free: 11.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004164/0.2651, allocations: 12 kB / 0.5627 GB, free: 11.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005066/0.2657, allocations: 190.8 kB / 0.5629 GB, free: 11.67 MB / 378.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.001245/0.2669, allocations: 0.6931 MB / 0.5635 GB, free: 10.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009298/0.2678, allocations: 0.6579 MB / 0.5642 GB, free: 10.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009668/0.2688, allocations: 1.691 MB / 0.5658 GB, free: 8.621 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.2691, allocations: 274.1 kB / 0.5661 GB, free: 8.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000478/0.2696, allocations: 0.5483 MB / 0.5666 GB, free: 7.789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005273/0.2701, allocations: 0.6883 MB / 0.5673 GB, free: 7.098 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.2703, allocations: 60 kB / 0.5674 GB, free: 7.039 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003346/0.2706, allocations: 183.9 kB / 0.5675 GB, free: 6.859 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.2708, allocations: 266.7 kB / 0.5678 GB, free: 6.598 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003122/0.2711, allocations: 0.5513 MB / 0.5683 GB, free: 6.043 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008246/0.2719, allocations: 1.511 MB / 0.5698 GB, free: 4.527 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.272, allocations: 4 kB / 0.5698 GB, free: 4.523 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.272, allocations: 0 / 0.5698 GB, free: 4.523 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.272, allocations: 0 / 0.5698 GB, free: 4.523 MB / 378.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.005528/0.2775, allocations: 2.018 MB / 0.5718 GB, free: 2.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2776, allocations: 8.031 kB / 0.5718 GB, free: 2.445 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003171/0.2807, allocations: 0.5574 MB / 0.5723 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001479/0.2822, allocations: 0.9987 MB / 0.5733 GB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.2824, allocations: 247.4 kB / 0.5735 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.2826, allocations: 68 kB / 0.5736 GB, free: 500 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.2843, allocations: 0.9602 MB / 0.5745 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2843, allocations: 4 kB / 0.5745 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.2844, allocations: 24 kB / 0.5746 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2844, allocations: 23.94 kB / 0.5746 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.2863, allocations: 0.9109 MB / 0.5755 GB, free: 14.55 MB / 394.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.006001/0.2923, allocations: 3.646 MB / 0.579 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01295/0.3053, allocations: 3.266 MB / 0.5822 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.3067, allocations: 0.5748 MB / 0.5828 GB, free: 6.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.3068, allocations: 12.64 kB / 0.5828 GB, free: 6.875 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.3069, allocations: 47.2 kB / 0.5828 GB, free: 6.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=76): time 2.856e-06/0.3069, allocations: 0 / 0.5828 GB, free: 6.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=76): time 0.01188/0.3187, allocations: 3.639 MB / 0.5864 GB, free: 3.109 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.3189, allocations: 111.5 kB / 0.5865 GB, free: 2.977 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.3211, allocations: 1.169 MB / 0.5876 GB, free: 1.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002245/0.3214, allocations: 41.7 kB / 0.5877 GB, free: 1.742 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.3218, allocations: 464.5 kB / 0.5881 GB, free: 1.281 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.3221, allocations: 280 kB / 0.5884 GB, free: 1.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.3223, allocations: 109.6 kB / 0.5885 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3224, allocations: 349.9 kB / 0.5888 GB, free: 0.543 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.3239, allocations: 0.6468 MB / 0.5895 GB, free: 15.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.3254, allocations: 0.7829 MB / 0.5902 GB, free: 15.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01985/0.3453, allocations: 4.511 MB / 0.5946 GB, free: 10.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.3453, allocations: 3.938 kB / 0.5946 GB, free: 10.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.008092/0.3534, allocations: 2.773 MB / 0.5974 GB, free: 7.754 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.3536, allocations: 143.3 kB / 0.5975 GB, free: 7.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3536, allocations: 4 kB / 0.5975 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004122/0.3577, allocations: 1.047 MB / 0.5985 GB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.359, allocations: 215.7 kB / 0.5987 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00974/0.3687, allocations: 4.714 MB / 0.6033 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.3704, allocations: 171 kB / 0.6035 GB, free: 1.297 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.3706, allocations: 39.98 kB / 0.6035 GB, free: 1.258 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.3706, allocations: 4 kB / 0.6035 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007529/0.3781, allocations: 2.589 MB / 0.6061 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3782, allocations: 160 / 0.6061 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004059/0.3822, allocations: 1.054 MB / 0.6071 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.3834, allocations: 207.7 kB / 0.6073 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009648/0.3931, allocations: 4.717 MB / 0.6119 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.3947, allocations: 155.1 kB / 0.612 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.3948, allocations: 39.98 kB / 0.6121 GB, free: 8.336 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: G1.machine.delta:VARIABLE(flow=false start = G1.machine.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,13,59.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006538/0.3955, allocations: 355.4 kB / 0.6124 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002209/0.3957, allocations: 114.6 kB / 0.6125 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006527/0.4022, allocations: 2.283 MB / 0.6148 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.4023, allocations: 8 kB / 0.6148 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4023, allocations: 4 kB / 0.6148 GB, free: 5.555 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4023, allocations: 7.922 kB / 0.6148 GB, free: 5.547 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.008602/0.4109, allocations: 3.865 MB / 0.6185 GB, free: 1.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.4109, allocations: 4 kB / 0.6186 GB, free: 1.582 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.4117, allocations: 107.8 kB / 0.6187 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00309/0.4148, allocations: 0.9295 MB / 0.6196 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.4149, allocations: 24 kB / 0.6196 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.4222, allocations: 3.812 MB / 0.6233 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4222, allocations: 0 / 0.6233 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007656/0.4298, allocations: 3.028 MB / 0.6263 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.4303, allocations: 223.5 kB / 0.6265 GB, free: 9.273 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.4305, allocations: 19.94 kB / 0.6265 GB, free: 9.254 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.4316, allocations: 103.9 kB / 0.6266 GB, free: 9.152 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003595/0.4319, allocations: 128.4 kB / 0.6267 GB, free: 9.027 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.998e-05/0.432, allocations: 24 kB / 0.6267 GB, free: 9.004 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001435/0.4334, allocations: 0.8192 MB / 0.6275 GB, free: 8.176 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4334, allocations: 0 / 0.6275 GB, free: 8.176 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001507/0.435, allocations: 0.5852 MB / 0.6281 GB, free: 7.59 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(9,9,48.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002421/0.4352, allocations: 140.1 kB / 0.6282 GB, free: 7.441 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008066/0.4433, allocations: 3.559 MB / 0.6317 GB, free: 3.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4433, allocations: 0 / 0.6317 GB, free: 3.773 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002955/0.4463, allocations: 1.244 MB / 0.6329 GB, free: 2.469 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.4474, allocations: 115.2 kB / 0.633 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004447/0.4518, allocations: 2.714 MB / 0.6357 GB, free: 15.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.4525, allocations: 1.086 MB / 0.6368 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003851/0.4529, allocations: 71.42 kB / 0.6368 GB, free: 14.43 MB / 458.7 MB Notification: Performance of SimCode: time 7.72e-07/0.4529, allocations: 3.938 kB / 0.6368 GB, free: 14.43 MB / 458.7 MB Notification: Performance of Templates: time 0.03172/0.4846, allocations: 29.87 MB / 0.666 GB, free: 0.543 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)