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.001364/0.001364, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001557/0.001557, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.1886/0.1886, allocations: 38.53 MB / 353.2 MB, free: 12.56 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.003145/0.003145, allocations: 66.55 kB / 493.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3767, allocations: 62.47 MB / 0.5428 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.008007/0.3847, allocations: 4.705 MB / 0.5474 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.3875, allocations: 1.523 MB / 0.5489 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.3879, allocations: 25.78 kB / 0.5489 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006345/0.3886, allocations: 117.4 kB / 0.549 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001069/0.3896, allocations: 277.2 kB / 0.5493 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.39, allocations: 117.1 kB / 0.5494 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.3911, allocations: 0.5115 MB / 0.5499 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.3914, allocations: 107.5 kB / 0.55 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.3918, allocations: 208.3 kB / 0.5502 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.3922, allocations: 223.2 kB / 0.5504 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.522e-05/0.3923, allocations: 29.03 kB / 0.5504 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.945e-05/0.3924, allocations: 26.03 kB / 0.5504 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.3925, allocations: 105.3 kB / 0.5505 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002434/0.3927, allocations: 180.4 kB / 0.5507 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006136/0.3934, allocations: 390.9 kB / 0.5511 GB, free: 10.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3934, allocations: 1.344 kB / 0.5511 GB, free: 10.06 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3934, allocations: 0 / 0.5511 GB, free: 10.06 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.3934, allocations: 0 / 0.5511 GB, free: 10.06 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.001416/0.3948, allocations: 0.5958 MB / 0.5517 GB, free: 9.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.25e-05/0.3949, allocations: 14.08 kB / 0.5517 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.168e-05/0.3949, allocations: 7.375 kB / 0.5517 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.769e-05/0.395, allocations: 64.06 kB / 0.5517 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3951, allocations: 44.31 kB / 0.5518 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009443/0.3961, allocations: 344.2 kB / 0.5521 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.3961, allocations: 23.84 kB / 0.5521 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-05/0.3962, allocations: 24.44 kB / 0.5522 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008556/0.397, allocations: 338.8 kB / 0.5525 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.3971, allocations: 5.062 kB / 0.5525 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.324e-05/0.3971, allocations: 11.19 kB / 0.5525 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.3971, allocations: 7.188 kB / 0.5525 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.3976, allocations: 203.5 kB / 0.5527 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.3996, allocations: 1.443 MB / 0.5541 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00051/0.4002, allocations: 193.4 kB / 0.5543 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.4003, allocations: 82.89 kB / 0.5544 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.4003, allocations: 6.188 kB / 0.5544 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.4004, allocations: 36.19 kB / 0.5544 GB, free: 7.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.605e-06/0.4004, allocations: 0 / 0.5544 GB, free: 7.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001317/0.4017, allocations: 0.6227 MB / 0.555 GB, free: 6.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4018, allocations: 138.8 kB / 0.5552 GB, free: 6.566 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.4022, allocations: 321.3 kB / 0.5555 GB, free: 6.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.4022, allocations: 26.92 kB / 0.5555 GB, free: 6.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.4024, allocations: 215.9 kB / 0.5557 GB, free: 6.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.652e-05/0.4025, allocations: 63.75 kB / 0.5558 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.604e-05/0.4026, allocations: 55.88 kB / 0.5558 GB, free: 6.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.4028, allocations: 342 kB / 0.5561 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.4029, allocations: 49.92 kB / 0.5562 GB, free: 5.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.4031, allocations: 150 kB / 0.5563 GB, free: 5.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.4034, allocations: 232.7 kB / 0.5565 GB, free: 5.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4034, allocations: 2.219 kB / 0.5565 GB, free: 5.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004868/0.4039, allocations: 250.5 kB / 0.5568 GB, free: 5.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.4039, allocations: 6.406 kB / 0.5568 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.4039, allocations: 8.031 kB / 0.5568 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.404, allocations: 8.047 kB / 0.5568 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.4044, allocations: 83.19 kB / 0.5569 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.4055, allocations: 1.269 MB / 0.5581 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.4057, allocations: 12.02 kB / 0.5581 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.4057, allocations: 14.53 kB / 0.5582 GB, free: 3.801 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.0002283/0.4059, allocations: 167.8 kB / 0.5583 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.454e-05/0.406, allocations: 34.92 kB / 0.5583 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003586/0.4064, allocations: 185.6 kB / 0.5585 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4064, allocations: 3.781 kB / 0.5585 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4064, allocations: 5.25 kB / 0.5585 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.475e-06/0.4064, allocations: 5.391 kB / 0.5585 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008703/0.4073, allocations: 0.5185 MB / 0.559 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4073, allocations: 1.219 kB / 0.559 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.4075, allocations: 41.64 kB / 0.5591 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4076, allocations: 2.344 kB / 0.5591 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.4076, allocations: 6.312 kB / 0.5591 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.4076, allocations: 5.141 kB / 0.5591 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.4076, allocations: 9.125 kB / 0.5591 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005079/0.4081, allocations: 484.4 kB / 0.5596 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/0.4082, allocations: 36.83 kB / 0.5596 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.4082, allocations: 6.375 kB / 0.5596 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.4084, allocations: 6.312 kB / 0.5596 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.4084, allocations: 20.56 kB / 0.5596 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.4084, allocations: 11.94 kB / 0.5596 GB, free: 2.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002419/0.4087, allocations: 215.2 kB / 0.5598 GB, free: 2.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4087, allocations: 0 / 0.5598 GB, free: 2.383 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000458/0.4091, allocations: 64 kB / 0.5599 GB, free: 2.32 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.0008459/0.41, allocations: 1.024 MB / 0.5609 GB, free: 1.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003977/0.4104, allocations: 167.1 kB / 0.5611 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4104, allocations: 0 / 0.5611 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.4105, allocations: 59.92 kB / 0.5611 GB, free: 1.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007603/0.4113, allocations: 92.53 kB / 0.5612 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/0.4155, allocations: 3.272 MB / 0.5644 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.416, allocations: 0.7992 MB / 0.5652 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.4162, allocations: 54.92 kB / 0.5652 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.4164, allocations: 115.4 kB / 0.5654 GB, free: 12.52 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4164, allocations: 7.875 kB / 0.5654 GB, free: 12.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.4472, allocations: 7.048 MB / 0.5722 GB, free: 5.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.25, allocations: 7.797 kB / 0.5723 GB, free: 5.625 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: 15.161824941984378] Failed to read output from testmodel.py, exit status != 0: 12.421744590974413 12.451012692 12.052050453 Calling exit ...