Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 225.6 MB / 244.8 MB, free: 14.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 195.5 kB / 299.8 MB, free: 9.832 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4987/0.4987, allocations: 79.73 MB / 434.4 MB, free: 6.195 MB / 302.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 87.84 kB / 0.5784 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1702, allocations: 72.1 MB / 0.6488 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.008245/0.1784, allocations: 6.215 MB / 0.6549 GB, free: 11.61 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004662/0.1831, allocations: 1.869 MB / 0.6567 GB, free: 9.738 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009847/0.1841, allocations: 11.94 kB / 0.6567 GB, free: 9.727 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007291/0.1848, allocations: 210.1 kB / 0.6569 GB, free: 9.52 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002715/0.1875, allocations: 0.808 MB / 0.6577 GB, free: 8.707 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.1892, allocations: 0.5834 MB / 0.6583 GB, free: 8.129 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.1916, allocations: 1.378 MB / 0.6596 GB, free: 6.742 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004742/0.1921, allocations: 204.1 kB / 0.6598 GB, free: 6.535 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.1931, allocations: 0.5795 MB / 0.6604 GB, free: 5.953 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.1943, allocations: 0.7662 MB / 0.6611 GB, free: 5.184 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002325/0.1945, allocations: 104 kB / 0.6612 GB, free: 5.082 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006552/0.1952, allocations: 239.9 kB / 0.6615 GB, free: 4.848 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000307/0.1955, allocations: 294.7 kB / 0.6617 GB, free: 4.559 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007333/0.1962, allocations: 0.6058 MB / 0.6623 GB, free: 3.949 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.1984, allocations: 1.494 MB / 0.6638 GB, free: 2.449 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1984, allocations: 0 / 0.6638 GB, free: 2.449 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1984, allocations: 4 kB / 0.6638 GB, free: 2.445 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.878e-05/0.1984, allocations: 0 / 0.6638 GB, free: 2.445 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008683/0.2071, allocations: 2.528 MB / 0.6663 GB, free: 15.86 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.2072, allocations: 15.95 kB / 0.6663 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.2073, allocations: 118.5 kB / 0.6664 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004935/0.2123, allocations: 0.7757 MB / 0.6671 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.2138, allocations: 0.7939 MB / 0.6679 GB, free: 14.09 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/0.2142, allocations: 264.1 kB / 0.6682 GB, free: 13.8 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.2144, allocations: 83.95 kB / 0.6682 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.2169, allocations: 1.173 MB / 0.6694 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.2169, allocations: 4 kB / 0.6694 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.217, allocations: 31.98 kB / 0.6694 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.217, allocations: 16 kB / 0.6694 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.219, allocations: 0.9498 MB / 0.6704 GB, free: 11.52 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.006504/0.2255, allocations: 3.543 MB / 0.6738 GB, free: 7.793 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007372/0.2329, allocations: 2.225 MB / 0.676 GB, free: 5.473 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.2342, allocations: 0.5931 MB / 0.6766 GB, free: 4.875 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.2344, allocations: 20.64 kB / 0.6766 GB, free: 4.855 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.2344, allocations: 43.22 kB / 0.6766 GB, free: 4.805 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 2.655e-06/0.2344, allocations: 0 / 0.6766 GB, free: 4.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02692/0.2613, allocations: 6.734 MB / 0.6832 GB, free: 14.01 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.2615, allocations: 93.77 kB / 0.6833 GB, free: 13.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.2633, allocations: 0.9696 MB / 0.6843 GB, free: 12.91 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/0.2635, allocations: 41.7 kB / 0.6843 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005034/0.264, allocations: 469.4 kB / 0.6847 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005036/0.2645, allocations: 329.2 kB / 0.6851 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006639/0.2652, allocations: 255.5 kB / 0.6853 GB, free: 11.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2653, allocations: 305.1 kB / 0.6856 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/0.2669, allocations: 0.6949 MB / 0.6863 GB, free: 10.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.2687, allocations: 0.9185 MB / 0.6872 GB, free: 9.836 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02163/0.2903, allocations: 5.061 MB / 0.6921 GB, free: 4.699 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.2903, allocations: 0 / 0.6921 GB, free: 4.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01374/0.3041, allocations: 4.13 MB / 0.6961 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.3041, allocations: 8 kB / 0.6962 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.3041, allocations: 7.938 kB / 0.6962 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3086/0.6127, allocations: 1.507 MB / 0.6976 GB, free: 43.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.614, allocations: 256.6 kB / 0.6979 GB, free: 43.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01964/0.6337, allocations: 8.278 MB / 0.706 GB, free: 40.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.6353, allocations: 175.7 kB / 0.7061 GB, free: 40.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.6354, allocations: 62.19 kB / 0.7062 GB, free: 40.28 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = \"rad\" fixed = true ) \"Rotor angle\" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = \"1\" fixed = true ) \"q-axis transient voltage\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005882/0.636, allocations: 261 kB / 0.7064 GB, free: 40.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.637, allocations: 344.5 kB / 0.7068 GB, free: 40 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/0.6496, allocations: 3.564 MB / 0.7102 GB, free: 39.26 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.6496, allocations: 9.625 kB / 0.7103 GB, free: 39.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.6496, allocations: 7.391 kB / 0.7103 GB, free: 39.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.6496, allocations: 4.219 kB / 0.7103 GB, free: 39.26 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01386/0.6635, allocations: 5.106 MB / 0.7153 GB, free: 37.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.6635, allocations: 0 / 0.7153 GB, free: 37.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/0.6641, allocations: 112.9 kB / 0.7154 GB, free: 37.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005095/0.6692, allocations: 1.581 MB / 0.7169 GB, free: 37.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.6693, allocations: 25.73 kB / 0.7169 GB, free: 37.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/0.6869, allocations: 10.77 MB / 0.7274 GB, free: 30.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6869, allocations: 0 / 0.7274 GB, free: 30.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/0.6992, allocations: 4.586 MB / 0.7319 GB, free: 27.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.6996, allocations: 218.8 kB / 0.7321 GB, free: 27.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.6998, allocations: 15.97 kB / 0.7321 GB, free: 27.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008937/0.7007, allocations: 87.03 kB / 0.7322 GB, free: 27.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005052/0.7012, allocations: 175.4 kB / 0.7324 GB, free: 27.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/0.7013, allocations: 31.55 kB / 0.7324 GB, free: 27.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000721/0.702, allocations: 0.6405 MB / 0.7331 GB, free: 27.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.702, allocations: 0 / 0.7331 GB, free: 27.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001385/0.7034, allocations: 437.6 kB / 0.7335 GB, free: 27.12 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01227/0.7157, allocations: 5.182 MB / 0.7385 GB, free: 22.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005192/0.7208, allocations: 2.162 MB / 0.7406 GB, free: 19.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.7208, allocations: 0 / 0.7406 GB, free: 19.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003299/0.7241, allocations: 1.257 MB / 0.7419 GB, free: 18.71 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.7255, allocations: 346 kB / 0.7422 GB, free: 18.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03076/0.7563, allocations: 15.01 MB / 0.7569 GB, free: 3.105 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.7567, allocations: 1.073 MB / 0.7579 GB, free: 2.004 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004112/0.7572, allocations: 107.3 kB / 0.758 GB, free: 1.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000491/0.7576, allocations: 439.3 kB / 0.7584 GB, free: 1.465 MB / 494.1 MB Notification: Performance of SimCode: time 1.754e-06/0.7576, allocations: 0 / 0.7584 GB, free: 1.465 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09969/0.8573, allocations: 31.64 MB / 0.7893 GB, free: 2.047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.45/18.31, allocations: 10.89 kB / 0.7893 GB, free: 2.039 MB / 0.5137 GB " [Timeout remaining time 642] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --stepSize=0.01 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.944797354284674] Failed to read output from testmodel.py, exit status != 0: 18.42057700501755 18.434312342 18.233000144 Calling exit ...