Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1824/0.1824, allocations: 38.54 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 64.17 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3289, allocations: 62.47 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007617/0.3365, allocations: 5.194 MB / 0.547 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.3436, allocations: 3.828 MB / 0.5508 GB, free: 9.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000434/0.3441, allocations: 23.81 kB / 0.5508 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01242/0.3565, allocations: 5.372 MB / 0.556 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001229/0.3577, allocations: 342.4 kB / 0.5563 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008205/0.3585, allocations: 259.5 kB / 0.5566 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.361, allocations: 1.633 MB / 0.5582 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005611/0.3616, allocations: 328.3 kB / 0.5585 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005321/0.3621, allocations: 390.5 kB / 0.5589 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006846/0.3628, allocations: 470.2 kB / 0.5593 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.607e-05/0.3629, allocations: 48 kB / 0.5594 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002964/0.3632, allocations: 115.8 kB / 0.5595 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.3634, allocations: 283.2 kB / 0.5598 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003038/0.3638, allocations: 266.7 kB / 0.56 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009355/0.3647, allocations: 0.7548 MB / 0.5607 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3647, allocations: 4 kB / 0.5607 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3647, allocations: 0 / 0.5607 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.3647, allocations: 0 / 0.5607 GB, free: 0.9648 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001689/0.3664, allocations: 0.8512 MB / 0.5616 GB, free: 88 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3664, allocations: 15.98 kB / 0.5616 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.3666, allocations: 94.69 kB / 0.5617 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004455/0.367, allocations: 92.47 kB / 0.5618 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.3682, allocations: 0.4885 MB / 0.5622 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/0.3682, allocations: 37 kB / 0.5623 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3683, allocations: 47.98 kB / 0.5623 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.3694, allocations: 0.6492 MB / 0.563 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.3694, allocations: 3.938 kB / 0.563 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.053e-05/0.3694, allocations: 23.98 kB / 0.563 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.3696, allocations: 48.97 kB / 0.563 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008128/0.3704, allocations: 495.6 kB / 0.5635 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.3741, allocations: 2.338 MB / 0.5658 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.3746, allocations: 291.6 kB / 0.5661 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.3749, allocations: 166.5 kB / 0.5662 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.3749, allocations: 7.938 kB / 0.5662 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.3749, allocations: 42.56 kB / 0.5663 GB, free: 11.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.835e-06/0.3749, allocations: 0 / 0.5663 GB, free: 11.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00264/0.3776, allocations: 1.278 MB / 0.5675 GB, free: 9.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.355e-05/0.3777, allocations: 118.7 kB / 0.5676 GB, free: 9.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005109/0.3782, allocations: 425.8 kB / 0.568 GB, free: 9.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3782, allocations: 33.69 kB / 0.5681 GB, free: 9.102 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.3785, allocations: 312.2 kB / 0.5684 GB, free: 8.793 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.3786, allocations: 126.9 kB / 0.5685 GB, free: 8.668 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.3788, allocations: 90.14 kB / 0.5686 GB, free: 8.574 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.3789, allocations: 362.7 kB / 0.5689 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.3792, allocations: 164.9 kB / 0.5691 GB, free: 8.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.3796, allocations: 293.2 kB / 0.5694 GB, free: 7.703 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.3804, allocations: 499.5 kB / 0.5698 GB, free: 7.156 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3804, allocations: 0 / 0.5698 GB, free: 7.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001347/0.3817, allocations: 0.7089 MB / 0.5705 GB, free: 6.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3817, allocations: 8 kB / 0.5705 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3817, allocations: 4.406 kB / 0.5705 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00065/0.3824, allocations: 213.3 kB / 0.5707 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.3827, allocations: 75.83 kB / 0.5708 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/0.3878, allocations: 3.991 MB / 0.5747 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003178/0.3881, allocations: 23.92 kB / 0.5747 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-05/0.3882, allocations: 24 kB / 0.5748 GB, free: 1.871 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.3885, allocations: 231.2 kB / 0.575 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.3886, allocations: 47.72 kB / 0.575 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00093/0.3895, allocations: 0.4912 MB / 0.5755 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3895, allocations: 4 kB / 0.5755 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3895, allocations: 4.031 kB / 0.5755 GB, free: 1.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3895, allocations: 7.922 kB / 0.5755 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.3912, allocations: 0.973 MB / 0.5765 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.3912, allocations: 7.984 kB / 0.5765 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.3917, allocations: 71.95 kB / 0.5766 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.3919, allocations: 53.67 kB / 0.5766 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.3919, allocations: 8 kB / 0.5766 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/0.3943, allocations: 2.636 MB / 0.5792 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3943, allocations: 4.031 kB / 0.5792 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.3954, allocations: 0.7994 MB / 0.58 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.3956, allocations: 79.78 kB / 0.58 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.3957, allocations: 8 kB / 0.5801 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.3959, allocations: 15.98 kB / 0.5801 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.256e-05/0.396, allocations: 23.95 kB / 0.5801 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.3961, allocations: 12 kB / 0.5801 GB, free: 12.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003537/0.3964, allocations: 291.1 kB / 0.5804 GB, free: 11.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3964, allocations: 0 / 0.5804 GB, free: 11.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005889/0.397, allocations: 136 kB / 0.5805 GB, free: 11.64 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001516/0.3985, allocations: 1.365 MB / 0.5818 GB, free: 10.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.3999, allocations: 0.7081 MB / 0.5825 GB, free: 9.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3999, allocations: 0 / 0.5825 GB, free: 9.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.4005, allocations: 414 kB / 0.5829 GB, free: 9.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007604/0.4013, allocations: 126.1 kB / 0.583 GB, free: 8.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008017/0.4093, allocations: 5.415 MB / 0.5883 GB, free: 3.309 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.4097, allocations: 336.8 kB / 0.5887 GB, free: 2.953 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.41, allocations: 104.4 kB / 0.5888 GB, free: 2.848 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.4103, allocations: 199.4 kB / 0.5889 GB, free: 2.652 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4103, allocations: 4 kB / 0.589 GB, free: 2.648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05174/0.462, allocations: 12.89 MB / 0.6015 GB, free: 5.973 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.8, allocations: 15.86 kB / 0.6016 GB, free: 5.957 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.69520356087014] Failed to read output from testmodel.py, exit status != 0: 13.935181010980159 13.963452211 13.594273083 Calling exit ...