Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005938/0.005938, allocations: 98.06 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 239.4 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5852/0.5852, allocations: 92.61 MB / 432.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 82.47 kB / 0.5732 GB, free: 33.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1693, allocations: 71.42 MB / 0.643 GB, free: 3.105 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.008677/0.178, allocations: 6.711 MB / 0.6495 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005711/0.1837, allocations: 2.021 MB / 0.6515 GB, free: 10.33 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000915/0.1847, allocations: 12 kB / 0.6515 GB, free: 10.32 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009155/0.1857, allocations: 245.9 kB / 0.6517 GB, free: 10.07 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002272/0.1879, allocations: 0.8118 MB / 0.6525 GB, free: 9.262 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.1895, allocations: 0.6443 MB / 0.6532 GB, free: 8.621 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.1914, allocations: 1.679 MB / 0.6548 GB, free: 6.938 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005024/0.1919, allocations: 326.5 kB / 0.6551 GB, free: 6.613 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009098/0.1928, allocations: 0.6924 MB / 0.6558 GB, free: 5.918 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.1939, allocations: 0.8713 MB / 0.6566 GB, free: 5.043 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.1941, allocations: 132 kB / 0.6568 GB, free: 4.914 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005894/0.1947, allocations: 275.8 kB / 0.657 GB, free: 4.645 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000361/0.1951, allocations: 342.6 kB / 0.6573 GB, free: 4.309 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006964/0.1958, allocations: 0.7107 MB / 0.658 GB, free: 3.594 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002148/0.1979, allocations: 1.735 MB / 0.6597 GB, free: 1.852 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.198, allocations: 0 / 0.6597 GB, free: 1.852 MB / 462.1 MB Notification: Performance of FrontEnd: time 6.131e-06/0.198, allocations: 4 kB / 0.6597 GB, free: 1.848 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.44e-05/0.198, allocations: 3.938 kB / 0.6597 GB, free: 1.844 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.009819/0.2078, allocations: 2.819 MB / 0.6625 GB, free: 14.95 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.2079, allocations: 8.031 kB / 0.6625 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000178/0.2081, allocations: 126.7 kB / 0.6626 GB, free: 14.81 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005018/0.2131, allocations: 0.7874 MB / 0.6634 GB, free: 14.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.2149, allocations: 0.9383 MB / 0.6643 GB, free: 13.03 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003405/0.2152, allocations: 264.1 kB / 0.6646 GB, free: 12.74 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.2154, allocations: 84 kB / 0.6646 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.2179, allocations: 1.118 MB / 0.6657 GB, free: 11.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.2179, allocations: 0 / 0.6657 GB, free: 11.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.218, allocations: 28 kB / 0.6658 GB, free: 11.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.2181, allocations: 20 kB / 0.6658 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002273/0.2203, allocations: 1.003 MB / 0.6668 GB, free: 10.47 MB / 478.1 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.007533/0.2279, allocations: 3.895 MB / 0.6706 GB, free: 6.398 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008043/0.2359, allocations: 2.411 MB / 0.6729 GB, free: 3.887 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.2376, allocations: 0.6995 MB / 0.6736 GB, free: 3.184 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.2377, allocations: 16.98 kB / 0.6736 GB, free: 3.168 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001857/0.2396, allocations: 0.8411 MB / 0.6744 GB, free: 2.309 MB / 478.1 MB Notification: Performance of pre-optimization done (n=98): time 2.875e-06/0.2396, allocations: 0 / 0.6744 GB, free: 2.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=98): time 0.03026/0.2698, allocations: 7.086 MB / 0.6814 GB, free: 11.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.27, allocations: 119.8 kB / 0.6815 GB, free: 11.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.272, allocations: 1.139 MB / 0.6826 GB, free: 9.863 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002509/0.2723, allocations: 45.7 kB / 0.6826 GB, free: 9.812 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005132/0.2728, allocations: 0.5015 MB / 0.6831 GB, free: 9.305 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004905/0.2733, allocations: 384.8 kB / 0.6835 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005956/0.2739, allocations: 291.5 kB / 0.6838 GB, free: 8.637 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2741, allocations: 313.1 kB / 0.6841 GB, free: 8.328 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.2759, allocations: 0.7926 MB / 0.6848 GB, free: 7.535 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/0.2779, allocations: 0.9694 MB / 0.6858 GB, free: 6.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02669/0.3046, allocations: 5.93 MB / 0.6916 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.3047, allocations: 0 / 0.6916 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01567/0.3204, allocations: 4.517 MB / 0.696 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.008e-05/0.3205, allocations: 59.41 kB / 0.696 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.3205, allocations: 0 / 0.696 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006733/0.3273, allocations: 1.67 MB / 0.6977 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.3289, allocations: 291.6 kB / 0.6979 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02243/0.3514, allocations: 8.632 MB / 0.7064 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/0.3536, allocations: 211.1 kB / 0.7066 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.3538, allocations: 55.98 kB / 0.7066 GB, free: 0.8867 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000753/0.3546, allocations: 314.9 kB / 0.7069 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.3548, allocations: 131.2 kB / 0.7071 GB, free: 448 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01366/0.3685, allocations: 3.924 MB / 0.7109 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.3686, allocations: 12 kB / 0.7109 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/0.3686, allocations: 8 kB / 0.7109 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.3686, allocations: 3.984 kB / 0.7109 GB, free: 12.46 MB / 0.5137 GB 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.01644/0.3851, allocations: 5.55 MB / 0.7163 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.3851, allocations: 0 / 0.7163 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007605/0.3859, allocations: 107.8 kB / 0.7164 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005985/0.3919, allocations: 1.599 MB / 0.718 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.3921, allocations: 24 kB / 0.718 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02233/0.4144, allocations: 9.633 MB / 0.7274 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4145, allocations: 0 / 0.7274 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/0.4305, allocations: 4.825 MB / 0.7321 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006064/0.4311, allocations: 232 kB / 0.7324 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002027/0.4314, allocations: 23.98 kB / 0.7324 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.4326, allocations: 107.9 kB / 0.7325 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007012/0.4334, allocations: 196.7 kB / 0.7327 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.985e-05/0.4335, allocations: 32.05 kB / 0.7327 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001288/0.4347, allocations: 0.7673 MB / 0.7335 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4348, allocations: 0 / 0.7335 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001555/0.4363, allocations: 499.6 kB / 0.7339 GB, free: 4.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0161/0.4524, allocations: 5.402 MB / 0.7392 GB, free: 14.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007682/0.4602, allocations: 2.628 MB / 0.7418 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.4602, allocations: 0 / 0.7418 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004819/0.465, allocations: 1.623 MB / 0.7434 GB, free: 10.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4662, allocations: 113.8 kB / 0.7435 GB, free: 10.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04383/0.51, allocations: 16.81 MB / 0.7599 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009667/0.5111, allocations: 1.136 MB / 0.761 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006607/0.5117, allocations: 124.3 kB / 0.7611 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007493/0.5125, allocations: 487.3 kB / 0.7616 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/0.5125, allocations: 0 / 0.7616 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4338/0.9463, allocations: 35.58 MB / 0.7963 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/16, allocations: 3.578 kB / 0.7963 GB, free: 105.7 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)