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.001979/0.001979, 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.002393/0.002393, allocations: 212.5 kB / 24.51 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.486/1.486, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.1893/0.1893, allocations: 38.55 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.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.001977/0.001977, allocations: 63.89 kB / 493.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3841, allocations: 62.46 MB / 0.5427 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006718/0.3908, allocations: 4.435 MB / 0.547 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.3934, allocations: 1.385 MB / 0.5484 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.3936, allocations: 20.91 kB / 0.5484 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005134/0.3942, allocations: 112.8 kB / 0.5485 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008791/0.395, allocations: 281.2 kB / 0.5488 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.3954, allocations: 109.8 kB / 0.5489 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000773/0.3961, allocations: 0.5039 MB / 0.5494 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.3964, allocations: 107.7 kB / 0.5495 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.3967, allocations: 219.4 kB / 0.5497 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000352/0.3971, allocations: 214.4 kB / 0.5499 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.994e-05/0.3971, allocations: 26.53 kB / 0.5499 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.611e-05/0.3972, allocations: 26.69 kB / 0.55 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.3973, allocations: 104.2 kB / 0.5501 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.3975, allocations: 152.3 kB / 0.5502 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005228/0.398, allocations: 384 kB / 0.5506 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.398, allocations: 3.938 kB / 0.5506 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3981, allocations: 1.281 kB / 0.5506 GB, free: 10.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.3981, allocations: 0 / 0.5506 GB, free: 10.33 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.001187/0.3993, allocations: 0.5932 MB / 0.5511 GB, free: 9.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3993, allocations: 14.61 kB / 0.5512 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.064e-05/0.3993, allocations: 6.844 kB / 0.5512 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.327e-05/0.3994, allocations: 60.64 kB / 0.5512 GB, free: 9.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3995, allocations: 47.34 kB / 0.5513 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007395/0.4002, allocations: 348.8 kB / 0.5516 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.4003, allocations: 19.72 kB / 0.5516 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.637e-05/0.4003, allocations: 29.81 kB / 0.5517 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006093/0.4009, allocations: 332.6 kB / 0.552 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.401, allocations: 5.219 kB / 0.552 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.401, allocations: 15.86 kB / 0.552 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.401, allocations: 10.69 kB / 0.552 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.4014, allocations: 203.8 kB / 0.5522 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.4036, allocations: 1.396 MB / 0.5536 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.4042, allocations: 186.5 kB / 0.5537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.4044, allocations: 73.88 kB / 0.5538 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.4044, allocations: 2.844 kB / 0.5538 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/0.4044, allocations: 41.84 kB / 0.5538 GB, free: 7.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.935e-06/0.4045, allocations: 0 / 0.5538 GB, free: 7.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00149/0.4059, allocations: 0.6275 MB / 0.5545 GB, free: 7.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.4061, allocations: 130.9 kB / 0.5546 GB, free: 6.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/0.4065, allocations: 317.4 kB / 0.5549 GB, free: 6.688 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.4065, allocations: 27.2 kB / 0.5549 GB, free: 6.656 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.4067, allocations: 223.4 kB / 0.5551 GB, free: 6.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.4068, allocations: 67.59 kB / 0.5552 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.4069, allocations: 48.48 kB / 0.5552 GB, free: 6.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.4071, allocations: 343.1 kB / 0.5556 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.4072, allocations: 46.23 kB / 0.5556 GB, free: 6.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.4074, allocations: 156 kB / 0.5558 GB, free: 5.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.4077, allocations: 227.4 kB / 0.556 GB, free: 5.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4077, allocations: 1.312 kB / 0.556 GB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004379/0.4081, allocations: 255.1 kB / 0.5562 GB, free: 5.508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4081, allocations: 7.406 kB / 0.5562 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4082, allocations: 11.53 kB / 0.5562 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.4082, allocations: 4.625 kB / 0.5562 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/0.4086, allocations: 79.06 kB / 0.5563 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.4098, allocations: 1.267 MB / 0.5576 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.41, allocations: 16.55 kB / 0.5576 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.41, allocations: 13.72 kB / 0.5576 GB, free: 4.141 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.0002589/0.4103, allocations: 167.7 kB / 0.5577 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.4104, allocations: 39.11 kB / 0.5578 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.4108, allocations: 182.8 kB / 0.558 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.4108, allocations: 2.188 kB / 0.558 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.4108, allocations: 2.312 kB / 0.558 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4108, allocations: 5.109 kB / 0.558 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000979/0.4118, allocations: 0.4961 MB / 0.5584 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4118, allocations: 5.094 kB / 0.5585 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.412, allocations: 49.7 kB / 0.5585 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.412, allocations: 1.156 kB / 0.5585 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.4121, allocations: 2.438 kB / 0.5585 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.4121, allocations: 2.531 kB / 0.5585 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4121, allocations: 5.25 kB / 0.5585 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.4126, allocations: 0.4922 MB / 0.559 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.4127, allocations: 27.77 kB / 0.559 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.603e-05/0.4127, allocations: 12.03 kB / 0.559 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.4129, allocations: 8 kB / 0.559 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.413, allocations: 15.92 kB / 0.5591 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.413, allocations: 8 kB / 0.5591 GB, free: 2.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.4133, allocations: 223.2 kB / 0.5593 GB, free: 2.629 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4133, allocations: 0 / 0.5593 GB, free: 2.629 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000483/0.4137, allocations: 60 kB / 0.5593 GB, free: 2.57 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.0009109/0.4146, allocations: 1.016 MB / 0.5603 GB, free: 1.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004284/0.4151, allocations: 171.3 kB / 0.5605 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4151, allocations: 0 / 0.5605 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.4152, allocations: 63.84 kB / 0.5605 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007643/0.416, allocations: 107.8 kB / 0.5606 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004469/0.4204, allocations: 3.269 MB / 0.5638 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.4207, allocations: 197.4 kB / 0.564 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.4209, allocations: 46.94 kB / 0.5641 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.4211, allocations: 119.4 kB / 0.5642 GB, free: 13.37 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4211, allocations: 0 / 0.5642 GB, free: 13.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0357/0.4568, allocations: 7.284 MB / 0.5713 GB, free: 6.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.47, allocations: 10.47 kB / 0.5713 GB, free: 6.289 MB / 414.1 MB " [Timeout remaining time 647] (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.392951781046577] Failed to read output from testmodel.py, exit status != 0: 12.644786649965681 12.670198864 12.268469968 Calling exit ...