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.001791/0.001791, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002356/0.002356, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.1859/0.1859, allocations: 38.52 MB / 352.4 MB, free: 12.67 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.002083/0.002083, allocations: 66.41 kB / 492.6 MB, free: 4.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3844, allocations: 62.46 MB / 0.542 GB, free: 480 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007603/0.392, allocations: 4.709 MB / 0.5466 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.3951, allocations: 1.516 MB / 0.5481 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000385/0.3955, allocations: 21.16 kB / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006213/0.3961, allocations: 121 kB / 0.5482 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.3974, allocations: 285.8 kB / 0.5485 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.3978, allocations: 113.9 kB / 0.5486 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.3988, allocations: 0.5068 MB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002742/0.3991, allocations: 112 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00053/0.3996, allocations: 216.5 kB / 0.5494 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005318/0.4002, allocations: 221.8 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.017e-05/0.4003, allocations: 25.81 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.4004, allocations: 26.78 kB / 0.5497 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.4006, allocations: 100.7 kB / 0.5498 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.4008, allocations: 180 kB / 0.5499 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005879/0.4014, allocations: 388.8 kB / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4014, allocations: 0 / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4014, allocations: 4 kB / 0.5503 GB, free: 10.08 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.4014, allocations: 0 / 0.5503 GB, free: 10.08 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.001421/0.4029, allocations: 0.5926 MB / 0.5509 GB, free: 9.586 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4029, allocations: 12.8 kB / 0.5509 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002141/0.4031, allocations: 64.94 kB / 0.551 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.4032, allocations: 47.88 kB / 0.551 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000777/0.404, allocations: 344.7 kB / 0.5513 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.404, allocations: 19.22 kB / 0.5514 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.4041, allocations: 25.94 kB / 0.5514 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005463/0.4046, allocations: 346 kB / 0.5517 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.4047, allocations: 4.938 kB / 0.5517 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.4047, allocations: 11.66 kB / 0.5517 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.4047, allocations: 6.375 kB / 0.5517 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.4051, allocations: 204.4 kB / 0.5519 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.407, allocations: 1.446 MB / 0.5533 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.4074, allocations: 189.6 kB / 0.5535 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.4075, allocations: 78.19 kB / 0.5536 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.4076, allocations: 2.219 kB / 0.5536 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.4076, allocations: 40.84 kB / 0.5536 GB, free: 7.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.525e-06/0.4076, allocations: 0 / 0.5536 GB, free: 7.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001221/0.4088, allocations: 0.6259 MB / 0.5542 GB, free: 6.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.4089, allocations: 132.2 kB / 0.5544 GB, free: 6.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.4093, allocations: 312.5 kB / 0.5547 GB, free: 6.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.4093, allocations: 29.7 kB / 0.5547 GB, free: 6.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.4095, allocations: 221.3 kB / 0.5549 GB, free: 6.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.4096, allocations: 67.31 kB / 0.555 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.13e-05/0.4097, allocations: 56.38 kB / 0.555 GB, free: 6.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4098, allocations: 345.9 kB / 0.5554 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.41, allocations: 49.73 kB / 0.5554 GB, free: 5.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.4102, allocations: 154 kB / 0.5556 GB, free: 5.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.4105, allocations: 224.4 kB / 0.5558 GB, free: 5.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4105, allocations: 2.344 kB / 0.5558 GB, free: 5.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004051/0.4109, allocations: 250.6 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.411, allocations: 7.281 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.411, allocations: 7.375 kB / 0.556 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.411, allocations: 8.375 kB / 0.556 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000386/0.4114, allocations: 74.41 kB / 0.5561 GB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.4127, allocations: 1.272 MB / 0.5573 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.4128, allocations: 12.45 kB / 0.5574 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.4129, allocations: 18.72 kB / 0.5574 GB, free: 3.82 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.0004377/0.4133, allocations: 179.4 kB / 0.5575 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.364e-05/0.4134, allocations: 30.91 kB / 0.5576 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003339/0.4137, allocations: 184.7 kB / 0.5578 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4137, allocations: 3.281 kB / 0.5578 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.4137, allocations: 5.078 kB / 0.5578 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4137, allocations: 1.188 kB / 0.5578 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.4149, allocations: 0.5128 MB / 0.5583 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4149, allocations: 5.125 kB / 0.5583 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.4151, allocations: 45.55 kB / 0.5583 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.4151, allocations: 6.422 kB / 0.5583 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.4151, allocations: 2.344 kB / 0.5583 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4152, allocations: 1.25 kB / 0.5583 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4152, allocations: 5.188 kB / 0.5583 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005695/0.4157, allocations: 496.5 kB / 0.5588 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.427e-05/0.4158, allocations: 32.77 kB / 0.5588 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.4158, allocations: 2.219 kB / 0.5588 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.416, allocations: 6.469 kB / 0.5588 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.4161, allocations: 17.67 kB / 0.5589 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.4161, allocations: 7.844 kB / 0.5589 GB, free: 2.629 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.4163, allocations: 220.8 kB / 0.5591 GB, free: 2.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4163, allocations: 4 kB / 0.5591 GB, free: 2.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004539/0.4168, allocations: 60 kB / 0.5591 GB, free: 2.352 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.001008/0.4178, allocations: 1.024 MB / 0.5601 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.4182, allocations: 154.7 kB / 0.5603 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4182, allocations: 3.938 kB / 0.5603 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.4183, allocations: 63.92 kB / 0.5603 GB, free: 1.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007208/0.4191, allocations: 104.3 kB / 0.5604 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004697/0.4238, allocations: 3.268 MB / 0.5636 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006614/0.4244, allocations: 0.7992 MB / 0.5644 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.4247, allocations: 58.92 kB / 0.5645 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.4249, allocations: 115.4 kB / 0.5646 GB, free: 12.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4249, allocations: 0 / 0.5646 GB, free: 12.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03753/0.4624, allocations: 7.017 MB / 0.5714 GB, free: 5.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.83, allocations: 6.969 kB / 0.5714 GB, free: 5.676 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.746018836973235] Failed to read output from testmodel.py, exit status != 0: 11.941618938930333 11.96638234 11.560045237 Calling exit ...