Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.001651/0.001651, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002089/0.002089, allocations: 211 kB / 23.73 MB, free: 4.387 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.542/1.542, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1962/0.1962, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.002105/0.002105, allocations: 67.89 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3527, allocations: 62.47 MB / 0.542 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007124/0.3598, allocations: 4.442 MB / 0.5463 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.3625, allocations: 1.384 MB / 0.5476 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003174/0.3629, allocations: 21.5 kB / 0.5477 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004657/0.3633, allocations: 109 kB / 0.5478 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007673/0.3641, allocations: 280.7 kB / 0.548 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.3644, allocations: 109.9 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.3652, allocations: 0.5118 MB / 0.5486 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.3654, allocations: 102.8 kB / 0.5487 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/0.3658, allocations: 216.7 kB / 0.5489 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.3661, allocations: 202.4 kB / 0.5491 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.3662, allocations: 25.31 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.628e-05/0.3662, allocations: 27.09 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.3664, allocations: 107.9 kB / 0.5493 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.3666, allocations: 149.2 kB / 0.5494 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.3671, allocations: 384.3 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3671, allocations: 0 / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3671, allocations: 0 / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3671, allocations: 0 / 0.5498 GB, free: 10.38 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001209/0.3683, allocations: 0.6028 MB / 0.5504 GB, free: 9.871 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.3684, allocations: 13.08 kB / 0.5504 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.409e-05/0.3685, allocations: 67.88 kB / 0.5505 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.913e-05/0.3686, allocations: 44.31 kB / 0.5505 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007536/0.3693, allocations: 336.3 kB / 0.5508 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.3693, allocations: 19.72 kB / 0.5508 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.014e-05/0.3694, allocations: 26.06 kB / 0.5509 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.37, allocations: 337.2 kB / 0.5512 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.37, allocations: 1.031 kB / 0.5512 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.37, allocations: 11.91 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.37, allocations: 6.719 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/0.3704, allocations: 210.1 kB / 0.5514 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.3722, allocations: 1.391 MB / 0.5528 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.3726, allocations: 194.6 kB / 0.553 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.3728, allocations: 73.62 kB / 0.553 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.3728, allocations: 3.562 kB / 0.553 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.3728, allocations: 41.47 kB / 0.5531 GB, free: 7.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.094e-06/0.3728, allocations: 1.219 kB / 0.5531 GB, free: 7.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001217/0.374, allocations: 0.6224 MB / 0.5537 GB, free: 7.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.3742, allocations: 134.8 kB / 0.5538 GB, free: 6.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.3745, allocations: 317.3 kB / 0.5541 GB, free: 6.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.3745, allocations: 26.83 kB / 0.5541 GB, free: 6.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.3748, allocations: 220.9 kB / 0.5543 GB, free: 6.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.3748, allocations: 71.2 kB / 0.5544 GB, free: 6.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.3749, allocations: 49.36 kB / 0.5545 GB, free: 6.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3751, allocations: 350.8 kB / 0.5548 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.3752, allocations: 50.09 kB / 0.5548 GB, free: 6.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3754, allocations: 152.1 kB / 0.555 GB, free: 5.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.3757, allocations: 231.4 kB / 0.5552 GB, free: 5.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3757, allocations: 1.094 kB / 0.5552 GB, free: 5.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004067/0.3761, allocations: 259.3 kB / 0.5555 GB, free: 5.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3761, allocations: 6.969 kB / 0.5555 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3761, allocations: 7.516 kB / 0.5555 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.3761, allocations: 8.906 kB / 0.5555 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.3765, allocations: 82.89 kB / 0.5556 GB, free: 5.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.3776, allocations: 1.266 MB / 0.5568 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.3778, allocations: 9.25 kB / 0.5568 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3778, allocations: 13.84 kB / 0.5568 GB, free: 4.176 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.378, allocations: 172.3 kB / 0.557 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.145e-05/0.3781, allocations: 34.92 kB / 0.557 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003399/0.3784, allocations: 185.2 kB / 0.5572 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3784, allocations: 6.5 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3784, allocations: 6.203 kB / 0.5572 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3784, allocations: 1.094 kB / 0.5572 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008324/0.3793, allocations: 0.4898 MB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3793, allocations: 1.188 kB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.3795, allocations: 44.39 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3795, allocations: 2.312 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.3795, allocations: 2.531 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3795, allocations: 1.406 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3795, allocations: 5.125 kB / 0.5577 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.3801, allocations: 0.4952 MB / 0.5582 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.3801, allocations: 35.84 kB / 0.5583 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.3802, allocations: 0 / 0.5583 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.3804, allocations: 8 kB / 0.5583 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.3804, allocations: 12.02 kB / 0.5583 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3804, allocations: 15.97 kB / 0.5583 GB, free: 2.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002519/0.3807, allocations: 219.2 kB / 0.5585 GB, free: 2.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3807, allocations: 0 / 0.5585 GB, free: 2.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.3811, allocations: 60 kB / 0.5586 GB, free: 2.633 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008626/0.382, allocations: 1.024 MB / 0.5596 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003845/0.3824, allocations: 158.9 kB / 0.5597 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3824, allocations: 0 / 0.5597 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.3825, allocations: 72.84 kB / 0.5598 GB, free: 1.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.3832, allocations: 99.88 kB / 0.5599 GB, free: 1.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.3878, allocations: 3.264 MB / 0.5631 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.388, allocations: 193.4 kB / 0.5632 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.3883, allocations: 58.92 kB / 0.5633 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.3884, allocations: 115.4 kB / 0.5634 GB, free: 13.44 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3884, allocations: 0 / 0.5634 GB, free: 13.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04102/0.4295, allocations: 7.574 MB / 0.5708 GB, free: 6.051 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.84, allocations: 7.422 kB / 0.5708 GB, free: 6.047 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.748919303994626] Failed to read output from testmodel.py, exit status != 0: 11.95076482836157 11.966043032 11.595749623 Calling exit ...