Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001235/0.001235, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001455/0.001455, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.51/1.51, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1846/0.1846, 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 master/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.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001963/0.001963, allocations: 63.91 kB / 493.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3616, allocations: 62.46 MB / 0.5427 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007264/0.3689, allocations: 5.043 MB / 0.5476 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003784/0.3726, allocations: 1.98 MB / 0.5496 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.373, allocations: 18.16 kB / 0.5496 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006103/0.3736, allocations: 154.7 kB / 0.5497 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.3746, allocations: 397.1 kB / 0.5501 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.3753, allocations: 222 kB / 0.5503 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.3764, allocations: 0.7133 MB / 0.551 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005111/0.3769, allocations: 334 kB / 0.5513 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005901/0.3775, allocations: 317.7 kB / 0.5516 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005257/0.3781, allocations: 309.5 kB / 0.5519 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.767e-05/0.3782, allocations: 51.72 kB / 0.552 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003463/0.3785, allocations: 135.4 kB / 0.5521 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.3787, allocations: 153.6 kB / 0.5523 GB, free: 9.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.379, allocations: 222.2 kB / 0.5525 GB, free: 8.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.38, allocations: 0.7097 MB / 0.5532 GB, free: 8.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.38, allocations: 3.984 kB / 0.5532 GB, free: 8.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.38, allocations: 0 / 0.5532 GB, free: 8.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.38, allocations: 0 / 0.5532 GB, free: 8.445 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001647/0.3817, allocations: 0.8025 MB / 0.5539 GB, free: 7.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3817, allocations: 13.8 kB / 0.554 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.015e-05/0.3817, allocations: 10.38 kB / 0.554 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.685e-05/0.3818, allocations: 75.03 kB / 0.554 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.3819, allocations: 56.89 kB / 0.5541 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007875/0.3827, allocations: 423.2 kB / 0.5545 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.3828, allocations: 28.06 kB / 0.5545 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.174e-05/0.3829, allocations: 44.75 kB / 0.5546 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3839, allocations: 490.9 kB / 0.555 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/0.384, allocations: 1.156 kB / 0.555 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-05/0.384, allocations: 20.59 kB / 0.5551 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.384, allocations: 8.906 kB / 0.5551 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006295/0.3847, allocations: 271.8 kB / 0.5553 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002582/0.3873, allocations: 1.707 MB / 0.557 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.3878, allocations: 237.4 kB / 0.5572 GB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.388, allocations: 88.36 kB / 0.5573 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.388, allocations: 7.984 kB / 0.5573 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.3883, allocations: 172.7 kB / 0.5575 GB, free: 4.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.365e-06/0.3883, allocations: 0 / 0.5575 GB, free: 4.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.00184/0.3901, allocations: 0.8572 MB / 0.5583 GB, free: 3.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.148e-05/0.3902, allocations: 132.5 kB / 0.5584 GB, free: 3.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005313/0.3908, allocations: 421.8 kB / 0.5588 GB, free: 3.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.3908, allocations: 33.7 kB / 0.5589 GB, free: 3.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.391, allocations: 276.1 kB / 0.5591 GB, free: 3.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.61e-05/0.3911, allocations: 99.16 kB / 0.5592 GB, free: 2.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3912, allocations: 65.7 kB / 0.5593 GB, free: 2.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3914, allocations: 354.8 kB / 0.5596 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.3916, allocations: 83.95 kB / 0.5597 GB, free: 2.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.3919, allocations: 241.9 kB / 0.5599 GB, free: 2.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004436/0.3923, allocations: 323.1 kB / 0.5602 GB, free: 1.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3923, allocations: 0 / 0.5602 GB, free: 1.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009311/0.3932, allocations: 429.6 kB / 0.5607 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3933, allocations: 10.81 kB / 0.5607 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3933, allocations: 4 kB / 0.5607 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.3937, allocations: 97.2 kB / 0.5608 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.394, allocations: 67.84 kB / 0.5608 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002725/0.3967, allocations: 1.899 MB / 0.5627 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.3971, allocations: 23.92 kB / 0.5627 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.3971, allocations: 16 kB / 0.5627 GB, free: 15.13 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003873/0.3975, allocations: 193.8 kB / 0.5629 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.3976, allocations: 47.72 kB / 0.563 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006731/0.3983, allocations: 294 kB / 0.5632 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3983, allocations: 4 kB / 0.5632 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3983, allocations: 4 kB / 0.5632 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3983, allocations: 3.984 kB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.3995, allocations: 0.6982 MB / 0.5639 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3995, allocations: 0 / 0.5639 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.3997, allocations: 51.91 kB / 0.564 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/0.4, allocations: 48.81 kB / 0.564 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.4, allocations: 7.984 kB / 0.564 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.4015, allocations: 1.444 MB / 0.5654 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4015, allocations: 0 / 0.5654 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008472/0.4023, allocations: 0.5067 MB / 0.5659 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.4025, allocations: 59.73 kB / 0.566 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.892e-05/0.4025, allocations: 4 kB / 0.566 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.4028, allocations: 15.98 kB / 0.566 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.97e-05/0.4029, allocations: 27.89 kB / 0.566 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.4029, allocations: 8 kB / 0.566 GB, free: 11.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.4033, allocations: 295.1 kB / 0.5663 GB, free: 11.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4033, allocations: 0 / 0.5663 GB, free: 11.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.4039, allocations: 127.9 kB / 0.5664 GB, free: 11.1 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002763/0.4066, allocations: 1.398 MB / 0.5678 GB, free: 9.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009842/0.4076, allocations: 399.1 kB / 0.5682 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4076, allocations: 4 kB / 0.5682 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004263/0.4081, allocations: 234.7 kB / 0.5684 GB, free: 9.211 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008052/0.4089, allocations: 136.1 kB / 0.5686 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006284/0.4151, allocations: 4.099 MB / 0.5726 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.4154, allocations: 251.9 kB / 0.5728 GB, free: 4.504 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.4157, allocations: 71.34 kB / 0.5729 GB, free: 4.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.4159, allocations: 163.4 kB / 0.573 GB, free: 4.27 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4159, allocations: 0 / 0.573 GB, free: 4.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04389/0.4598, allocations: 12.17 MB / 0.5849 GB, free: 8.254 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/14.74, allocations: 15.92 kB / 0.5849 GB, free: 8.238 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.95114592195023] Failed to read output from testmodel.py, exit status != 0: 14.979338493081741 14.996202828 14.612917865 Calling exit ...