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.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/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) 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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008111/0.0008111, allocations: 93.28 kB / 16.31 MB, free: 5.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008789/0.0008789, allocations: 181.1 kB / 17.21 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.708/1.708, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1802/0.1802, allocations: 38.05 MB / 309.7 MB, free: 6.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005095/0.0005097, allocations: 16 kB / 376.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3168, allocations: 56.32 MB / 432.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005155/0.322, allocations: 5.523 MB / 438.5 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005427/0.3275, allocations: 4.145 MB / 442.6 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006715/0.3282, allocations: 31.81 kB / 442.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008525/0.3367, allocations: 4.386 MB / 447 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001182/0.3379, allocations: 382.1 kB / 447.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008937/0.3388, allocations: 235.6 kB / 447.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.341, allocations: 1.809 MB / 449.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008907/0.3419, allocations: 0.4907 MB / 449.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005434/0.3425, allocations: 314.6 kB / 450.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006595/0.3431, allocations: 430.5 kB / 450.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.3433, allocations: 24 kB / 450.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003177/0.3436, allocations: 71.88 kB / 450.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.3439, allocations: 259.3 kB / 451 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.3441, allocations: 141.4 kB / 451.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005713/0.3447, allocations: 0.5571 MB / 451.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3447, allocations: 4 kB / 451.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3447, allocations: 0 / 451.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.69e-05/0.3447, allocations: 0 / 451.7 MB, free: 15.94 MB / 334.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.001818/0.3465, allocations: 0.8003 MB / 452.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3466, allocations: 8.031 kB / 452.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.3468, allocations: 90.5 kB / 452.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005549/0.3473, allocations: 99.06 kB / 452.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.3485, allocations: 0.5093 MB / 453.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.993e-05/0.3486, allocations: 37 kB / 453.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.3487, allocations: 59.88 kB / 453.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3498, allocations: 0.6413 MB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.3498, allocations: 8 kB / 454 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/0.3499, allocations: 19.98 kB / 454 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.35, allocations: 48.95 kB / 454 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008542/0.3509, allocations: 491.5 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004257/0.3552, allocations: 2.535 MB / 457 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.3557, allocations: 319.5 kB / 457.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.356, allocations: 178.5 kB / 457.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.3561, allocations: 4.5 kB / 457.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.3561, allocations: 46.55 kB / 457.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.364e-06/0.3561, allocations: 0 / 457.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.00306/0.3592, allocations: 1.637 MB / 459.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.3593, allocations: 110.8 kB / 459.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005173/0.3598, allocations: 425.8 kB / 459.7 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.3599, allocations: 33.7 kB / 459.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.3601, allocations: 307.8 kB / 460.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3603, allocations: 122.2 kB / 460.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.3603, allocations: 8 kB / 460.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3605, allocations: 362.7 kB / 460.5 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.3607, allocations: 165 kB / 460.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.3611, allocations: 298.3 kB / 461 MB, free: 6.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.3614, allocations: 207.7 kB / 461.2 MB, free: 5.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3615, allocations: 8 kB / 461.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001313/0.3628, allocations: 0.7917 MB / 462 MB, free: 5.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.3628, allocations: 8 kB / 462 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.3628, allocations: 4 kB / 462 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006437/0.3635, allocations: 213.7 kB / 462.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.3638, allocations: 79.83 kB / 462.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/0.3681, allocations: 3.886 MB / 466.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.3684, allocations: 19.98 kB / 466.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.3685, allocations: 20 kB / 466.2 MB, free: 0.5469 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003105/0.3688, allocations: 237.5 kB / 466.5 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.3689, allocations: 47.44 kB / 466.5 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009293/0.3698, allocations: 0.6294 MB / 467.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3698, allocations: 4 kB / 467.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3699, allocations: 7.969 kB / 467.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3699, allocations: 4 kB / 467.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.3716, allocations: 1.195 MB / 468.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3716, allocations: 0 / 468.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.372, allocations: 75.89 kB / 468.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001511/0.3722, allocations: 53.67 kB / 468.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3722, allocations: 11.98 kB / 468.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002073/0.3743, allocations: 2.626 MB / 471.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3743, allocations: 3.938 kB / 471.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.3755, allocations: 0.9607 MB / 472.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.3757, allocations: 148.5 kB / 472.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.505e-05/0.3758, allocations: 12 kB / 472.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.376, allocations: 11.98 kB / 472.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.3761, allocations: 27.92 kB / 472.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.3761, allocations: 15.98 kB / 472.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003372/0.3765, allocations: 291.1 kB / 472.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3765, allocations: 0 / 472.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005775/0.3771, allocations: 128 kB / 472.7 MB, free: 9.551 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/0.3785, allocations: 1.502 MB / 474.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3798, allocations: 0.7202 MB / 474.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3798, allocations: 0 / 474.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005433/0.3803, allocations: 426.3 kB / 475.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007436/0.3811, allocations: 105.9 kB / 475.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006068/0.3872, allocations: 4 MB / 479.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.3878, allocations: 0.956 MB / 480.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003405/0.3881, allocations: 96.38 kB / 480.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.3884, allocations: 199.4 kB / 480.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3884, allocations: 4 kB / 480.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.419, allocations: 11.38 MB / 492.1 MB, free: 5.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.4192, allocations: 219.4 kB / 492.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.359, allocations: 4 kB / 492.3 MB, free: 5.668 MB / 366.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: