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: "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_2.Example_2,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_2.Example_2,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.334/1.334, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0008422/0.0008422, allocations: 94.59 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4722/0.4722, allocations: 78.08 MB / 414.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.837e-05/2.846e-05, allocations: 0 / 491.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3705, allocations: 69.34 MB / 0.5481 GB, free: 20.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.5102, allocations: 101.1 MB / 0.6468 GB, free: 15.47 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.5105, allocations: 79.95 kB / 0.6469 GB, free: 15.39 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09465/0.6052, allocations: 29.8 MB / 0.676 GB, free: 1.402 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6052, allocations: 0 / 0.676 GB, free: 1.402 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002268/0.6054, allocations: 24 kB / 0.676 GB, free: 1.379 MB / 490.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.4297/1.035, allocations: 1.459 MB / 0.6774 GB, free: 104.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.561e-05/1.035, allocations: 13.59 kB / 0.6774 GB, free: 104.5 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000866/1.036, allocations: 109.9 kB / 0.6775 GB, free: 104.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003628/1.04, allocations: 419 kB / 0.6779 GB, free: 104.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002526/1.042, allocations: 0.863 MB / 0.6788 GB, free: 104.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/1.043, allocations: 244.9 kB / 0.679 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/1.043, allocations: 70.44 kB / 0.6791 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/1.045, allocations: 0.8536 MB / 0.6799 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/1.045, allocations: 1.75 kB / 0.6799 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.986e-05/1.045, allocations: 26.5 kB / 0.6799 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/1.045, allocations: 14.47 kB / 0.68 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/1.047, allocations: 0.7788 MB / 0.6807 GB, free: 103.8 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.009732/1.057, allocations: 3.614 MB / 0.6843 GB, free: 103.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01499/1.072, allocations: 4.013 MB / 0.6882 GB, free: 102.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/1.073, allocations: 481.4 kB / 0.6886 GB, free: 102.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/1.073, allocations: 17.94 kB / 0.6886 GB, free: 102.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/1.073, allocations: 43.59 kB / 0.6887 GB, free: 102.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=76): time 3.607e-06/1.073, allocations: 0 / 0.6887 GB, free: 102.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=76): time 0.00607/1.079, allocations: 2.14 MB / 0.6908 GB, free: 102.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/1.079, allocations: 117.3 kB / 0.6909 GB, free: 102.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/1.081, allocations: 0.9279 MB / 0.6918 GB, free: 102.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/1.081, allocations: 41.05 kB / 0.6918 GB, free: 102.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/1.081, allocations: 481.5 kB / 0.6923 GB, free: 101.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/1.082, allocations: 272.5 kB / 0.6926 GB, free: 101.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.632e-05/1.082, allocations: 19.88 kB / 0.6926 GB, free: 101.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/1.082, allocations: 337.3 kB / 0.6929 GB, free: 101.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/1.082, allocations: 430.4 kB / 0.6933 GB, free: 101 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007237/1.083, allocations: 0.5223 MB / 0.6938 GB, free: 100.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007387/1.084, allocations: 473.3 kB / 0.6943 GB, free: 100.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.084, allocations: 0.75 kB / 0.6943 GB, free: 100.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.0064/1.09, allocations: 2.391 MB / 0.6966 GB, free: 99.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/1.091, allocations: 0.6178 MB / 0.6972 GB, free: 99.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/1.091, allocations: 0 / 0.6972 GB, free: 99.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003823/1.094, allocations: 1.021 MB / 0.6982 GB, free: 98.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009425/1.095, allocations: 165 kB / 0.6984 GB, free: 98.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008142/1.104, allocations: 4.455 MB / 0.7027 GB, free: 96.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/1.105, allocations: 178.4 kB / 0.7029 GB, free: 96.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.939e-05/1.105, allocations: 28.94 kB / 0.7029 GB, free: 96.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/1.105, allocations: 3.812 kB / 0.7029 GB, free: 96.17 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006172/1.112, allocations: 2.251 MB / 0.7051 GB, free: 95.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/1.112, allocations: 3.844 kB / 0.7051 GB, free: 95.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/1.116, allocations: 1.009 MB / 0.7061 GB, free: 95.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007995/1.116, allocations: 147.4 kB / 0.7062 GB, free: 95.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007824/1.124, allocations: 4.45 MB / 0.7106 GB, free: 92.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/1.126, allocations: 162.8 kB / 0.7107 GB, free: 91.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/1.126, allocations: 23.56 kB / 0.7108 GB, free: 91.86 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: G1.avr.vref:VARIABLE(unit = "1" fixed = false 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 76 * 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.0003089/1.126, allocations: 147.1 kB / 0.7109 GB, free: 91.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/1.127, allocations: 114.5 kB / 0.711 GB, free: 91.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005703/1.132, allocations: 2.25 MB / 0.7132 GB, free: 89.77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/1.132, allocations: 8 kB / 0.7132 GB, free: 89.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.132, allocations: 4 kB / 0.7132 GB, free: 89.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/1.132, allocations: 5.906 kB / 0.7132 GB, free: 89.75 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.00817/1.141, allocations: 3.832 MB / 0.717 GB, free: 86.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/1.141, allocations: 4 kB / 0.717 GB, free: 86.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008088/1.141, allocations: 105.7 kB / 0.7171 GB, free: 86.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/1.144, allocations: 0.8472 MB / 0.7179 GB, free: 85.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/1.144, allocations: 24 kB / 0.7179 GB, free: 85.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005391/1.15, allocations: 3.366 MB / 0.7212 GB, free: 82.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.15, allocations: 0 / 0.7212 GB, free: 82.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006557/1.156, allocations: 2.901 MB / 0.724 GB, free: 80.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005662/1.157, allocations: 232.6 kB / 0.7243 GB, free: 79.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003219/1.157, allocations: 20 kB / 0.7243 GB, free: 79.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/1.159, allocations: 128.7 kB / 0.7244 GB, free: 79.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003831/1.159, allocations: 133.1 kB / 0.7245 GB, free: 79.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.684e-05/1.159, allocations: 19.38 kB / 0.7246 GB, free: 79.65 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001332/1.161, allocations: 0.7236 MB / 0.7253 GB, free: 78.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.161, allocations: 0 / 0.7253 GB, free: 78.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002229/1.163, allocations: 0.5494 MB / 0.7258 GB, free: 78.42 MB / 490.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 () * 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.006816/1.17, allocations: 3.569 MB / 0.7293 GB, free: 75.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006838/1.176, allocations: 3.097 MB / 0.7323 GB, free: 72.22 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/1.176, allocations: 0 / 0.7323 GB, free: 72.22 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/1.179, allocations: 1.223 MB / 0.7335 GB, free: 71.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/1.18, allocations: 102.5 kB / 0.7336 GB, free: 70.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/1.185, allocations: 2.133 MB / 0.7357 GB, free: 69.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/1.186, allocations: 1.107 MB / 0.7368 GB, free: 68.13 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0009308/1.187, allocations: 205.3 kB / 0.737 GB, free: 67.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004878/1.187, allocations: 406.2 kB / 0.7373 GB, free: 67.63 MB / 490.7 MB Notification: Performance of SimCode: time 1.283e-06/1.187, allocations: 0 / 0.7373 GB, free: 67.63 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05943/1.247, allocations: 33.04 MB / 0.7696 GB, free: 35.09 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/1.247, allocations: 186 kB / 0.7698 GB, free: 34.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.956/4.203, allocations: 7.766 kB / 0.7698 GB, free: 34.86 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2.fmu > OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)