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.001304/0.001304, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001664/0.001664, allocations: 214 kB / 24.52 MB, free: 3.914 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.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.1843/0.1843, allocations: 38.54 MB / 353.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",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.003194/0.003194, allocations: 63.91 kB / 493.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3362, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007247/0.3435, allocations: 5.191 MB / 0.5478 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006286/0.3498, allocations: 3.816 MB / 0.5515 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000417/0.3502, allocations: 23.41 kB / 0.5515 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01277/0.3629, allocations: 5.439 MB / 0.5568 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.364, allocations: 346.4 kB / 0.5572 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006934/0.3647, allocations: 255.5 kB / 0.5574 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.367, allocations: 1.645 MB / 0.559 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005524/0.3676, allocations: 328.3 kB / 0.5593 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.3681, allocations: 394.5 kB / 0.5597 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000686/0.3688, allocations: 486.2 kB / 0.5602 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.999e-05/0.3689, allocations: 44 kB / 0.5602 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.3692, allocations: 115.8 kB / 0.5603 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002942/0.3695, allocations: 283.2 kB / 0.5606 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003102/0.3698, allocations: 274.7 kB / 0.5609 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008949/0.3707, allocations: 0.7548 MB / 0.5616 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3707, allocations: 0 / 0.5616 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3707, allocations: 0 / 0.5616 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3707, allocations: 0 / 0.5616 GB, free: 0.8789 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.001709/0.3724, allocations: 0.8531 MB / 0.5624 GB, free: 15.99 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3724, allocations: 15.98 kB / 0.5624 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.127e-05/0.3725, allocations: 13.19 kB / 0.5625 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.3726, allocations: 86.66 kB / 0.5625 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004877/0.3731, allocations: 96.48 kB / 0.5626 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.3741, allocations: 496 kB / 0.5631 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.3742, allocations: 40.98 kB / 0.5631 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.353e-05/0.3743, allocations: 44 kB / 0.5632 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.3753, allocations: 0.6608 MB / 0.5638 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3753, allocations: 0 / 0.5638 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.266e-05/0.3754, allocations: 16 kB / 0.5638 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.3755, allocations: 48.97 kB / 0.5639 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008251/0.3764, allocations: 491.6 kB / 0.5644 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/0.3799, allocations: 2.35 MB / 0.5667 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.3804, allocations: 291.6 kB / 0.5669 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.3807, allocations: 174.5 kB / 0.5671 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.3808, allocations: 4 kB / 0.5671 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.3808, allocations: 38.56 kB / 0.5671 GB, free: 10.92 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 1.823e-06/0.3808, allocations: 0 / 0.5671 GB, free: 10.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00253/0.3833, allocations: 1.278 MB / 0.5684 GB, free: 9.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/0.3834, allocations: 114.8 kB / 0.5685 GB, free: 9.465 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.3839, allocations: 417.9 kB / 0.5689 GB, free: 9.047 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.384, allocations: 33.7 kB / 0.5689 GB, free: 9.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.3842, allocations: 312.2 kB / 0.5692 GB, free: 8.699 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3843, allocations: 130.9 kB / 0.5694 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.3845, allocations: 90.14 kB / 0.5694 GB, free: 8.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3847, allocations: 362.7 kB / 0.5698 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.3849, allocations: 160.9 kB / 0.5699 GB, free: 7.957 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.3853, allocations: 305.2 kB / 0.5702 GB, free: 7.598 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.386, allocations: 487.7 kB / 0.5707 GB, free: 7.062 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.386, allocations: 3.938 kB / 0.5707 GB, free: 7.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001355/0.3873, allocations: 0.7129 MB / 0.5714 GB, free: 6.332 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3874, allocations: 12.06 kB / 0.5714 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3874, allocations: 4 kB / 0.5714 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/0.3881, allocations: 209.3 kB / 0.5716 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/0.3884, allocations: 75.83 kB / 0.5717 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005066/0.3935, allocations: 4.009 MB / 0.5756 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004341/0.3939, allocations: 12 kB / 0.5756 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.394, allocations: 23.98 kB / 0.5756 GB, free: 1.77 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.0004629/0.3944, allocations: 225.6 kB / 0.5758 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3946, allocations: 55.67 kB / 0.5759 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.3956, allocations: 495 kB / 0.5764 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3956, allocations: 4 kB / 0.5764 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3956, allocations: 4 kB / 0.5764 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.3956, allocations: 7.984 kB / 0.5764 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.3975, allocations: 0.9771 MB / 0.5773 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3975, allocations: 4.062 kB / 0.5773 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.398, allocations: 71.89 kB / 0.5774 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.3982, allocations: 53.67 kB / 0.5775 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.3982, allocations: 11.98 kB / 0.5775 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.4006, allocations: 2.632 MB / 0.58 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4006, allocations: 0 / 0.58 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.4018, allocations: 0.8144 MB / 0.5808 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.402, allocations: 63.69 kB / 0.5809 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.4021, allocations: 15.98 kB / 0.5809 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.4023, allocations: 12 kB / 0.5809 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.4024, allocations: 23.95 kB / 0.581 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.4024, allocations: 11.98 kB / 0.581 GB, free: 11.95 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003598/0.4028, allocations: 299.1 kB / 0.5812 GB, free: 11.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4028, allocations: 4 kB / 0.5813 GB, free: 11.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006291/0.4034, allocations: 128 kB / 0.5814 GB, free: 11.54 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.001465/0.4049, allocations: 1.36 MB / 0.5827 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.4063, allocations: 0.7079 MB / 0.5834 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4063, allocations: 0 / 0.5834 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006349/0.4069, allocations: 413.9 kB / 0.5838 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008131/0.4078, allocations: 117.2 kB / 0.5839 GB, free: 8.855 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008269/0.416, allocations: 5.42 MB / 0.5892 GB, free: 3.211 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.4164, allocations: 348.8 kB / 0.5895 GB, free: 2.844 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.4168, allocations: 104.4 kB / 0.5896 GB, free: 2.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.4171, allocations: 191.4 kB / 0.5898 GB, free: 2.551 MB / 430.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4171, allocations: 0 / 0.5898 GB, free: 2.551 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04721/0.4643, allocations: 12.69 MB / 0.6022 GB, free: 6.102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.59, allocations: 11.58 kB / 0.6022 GB, free: 6.094 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.587712653097697] Failed to read output from testmodel.py, exit status != 0: 14.770983695983887 14.79631944 14.420626291 Calling exit ...