Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001858/0.001858, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.002478/0.002478, allocations: 214.9 kB / 24.51 MB, free: 3.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.582/1.582, 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 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.1964/0.1964, allocations: 38.56 MB / 353.2 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.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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.002054/0.002054, allocations: 67.89 kB / 493.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3593, allocations: 62.46 MB / 0.5427 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.01094/0.3702, allocations: 5.032 MB / 0.5476 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005481/0.3757, allocations: 1.989 MB / 0.5496 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006595/0.3763, allocations: 22.88 kB / 0.5496 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007521/0.3771, allocations: 146.7 kB / 0.5497 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.3785, allocations: 400.5 kB / 0.5501 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007432/0.3793, allocations: 217.5 kB / 0.5503 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.3804, allocations: 0.7137 MB / 0.551 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000581/0.381, allocations: 338.7 kB / 0.5513 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006514/0.3817, allocations: 317.8 kB / 0.5516 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005635/0.3822, allocations: 309.8 kB / 0.5519 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.1e-05/0.3823, allocations: 47.62 kB / 0.552 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003393/0.3827, allocations: 139.4 kB / 0.5521 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.3828, allocations: 153 kB / 0.5522 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.3831, allocations: 222.8 kB / 0.5525 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008822/0.384, allocations: 0.7005 MB / 0.5531 GB, free: 8.465 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.384, allocations: 1.188 kB / 0.5531 GB, free: 8.465 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.384, allocations: 0 / 0.5531 GB, free: 8.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.384, allocations: 0 / 0.5531 GB, free: 8.465 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.001727/0.3857, allocations: 0.8138 MB / 0.5539 GB, free: 7.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3858, allocations: 14.36 kB / 0.554 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.989e-05/0.3858, allocations: 10 kB / 0.554 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.892e-05/0.3859, allocations: 75.81 kB / 0.554 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.386, allocations: 63.48 kB / 0.5541 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008888/0.3869, allocations: 424.1 kB / 0.5545 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.387, allocations: 27.75 kB / 0.5545 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/0.387, allocations: 45 kB / 0.5546 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007785/0.3878, allocations: 487.2 kB / 0.555 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.3878, allocations: 1.125 kB / 0.555 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.3879, allocations: 15.56 kB / 0.555 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.3879, allocations: 9.5 kB / 0.5551 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.3884, allocations: 272.7 kB / 0.5553 GB, free: 6.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.3909, allocations: 1.706 MB / 0.557 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.3914, allocations: 241.7 kB / 0.5572 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.3916, allocations: 88.36 kB / 0.5573 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3916, allocations: 4 kB / 0.5573 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.3919, allocations: 172.7 kB / 0.5575 GB, free: 4.852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.984e-06/0.3919, allocations: 0 / 0.5575 GB, free: 4.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001915/0.3938, allocations: 0.857 MB / 0.5583 GB, free: 3.957 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.663e-05/0.3939, allocations: 132.5 kB / 0.5584 GB, free: 3.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005234/0.3944, allocations: 425.8 kB / 0.5588 GB, free: 3.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3945, allocations: 29.7 kB / 0.5589 GB, free: 3.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.3947, allocations: 276.3 kB / 0.5591 GB, free: 3.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.141e-05/0.3948, allocations: 103.4 kB / 0.5592 GB, free: 2.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3949, allocations: 61.7 kB / 0.5593 GB, free: 2.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3951, allocations: 358.8 kB / 0.5596 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.3952, allocations: 83.95 kB / 0.5597 GB, free: 2.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.3955, allocations: 237.9 kB / 0.5599 GB, free: 2.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.396, allocations: 319.1 kB / 0.5602 GB, free: 1.789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.396, allocations: 0 / 0.5602 GB, free: 1.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008874/0.3969, allocations: 430 kB / 0.5607 GB, free: 1.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3969, allocations: 8 kB / 0.5607 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3969, allocations: 8.031 kB / 0.5607 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004703/0.3974, allocations: 92.75 kB / 0.5608 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.3976, allocations: 71.84 kB / 0.5608 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.4001, allocations: 1.891 MB / 0.5627 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.4005, allocations: 31.92 kB / 0.5627 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.4005, allocations: 16 kB / 0.5627 GB, free: 15.12 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.0003203/0.4008, allocations: 193.8 kB / 0.5629 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.4009, allocations: 47.66 kB / 0.5629 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006812/0.4016, allocations: 302 kB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4016, allocations: 0 / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4016, allocations: 4 kB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.4016, allocations: 4 kB / 0.5632 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.4028, allocations: 0.7021 MB / 0.5639 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.4028, allocations: 4 kB / 0.5639 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.403, allocations: 47.91 kB / 0.564 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.4032, allocations: 48.81 kB / 0.564 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.4033, allocations: 11.98 kB / 0.564 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.4047, allocations: 1.432 MB / 0.5654 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4047, allocations: 3.984 kB / 0.5654 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.4055, allocations: 0.5027 MB / 0.5659 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.4057, allocations: 59.73 kB / 0.566 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.4057, allocations: 4 kB / 0.566 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.4059, allocations: 11.98 kB / 0.566 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.406, allocations: 31.95 kB / 0.566 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.406, allocations: 12 kB / 0.566 GB, free: 11.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003593/0.4064, allocations: 291.1 kB / 0.5663 GB, free: 11.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4064, allocations: 0 / 0.5663 GB, free: 11.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000595/0.407, allocations: 127.9 kB / 0.5664 GB, free: 11.09 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.002687/0.4097, allocations: 1.403 MB / 0.5678 GB, free: 9.848 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009348/0.4106, allocations: 399 kB / 0.5682 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4106, allocations: 0 / 0.5682 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.411, allocations: 234.5 kB / 0.5684 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.4118, allocations: 134.8 kB / 0.5685 GB, free: 9.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/0.418, allocations: 4.1 MB / 0.5725 GB, free: 4.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.4183, allocations: 255.9 kB / 0.5728 GB, free: 4.492 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002467/0.4185, allocations: 67.34 kB / 0.5729 GB, free: 4.422 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.4188, allocations: 159.4 kB / 0.573 GB, free: 4.266 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4188, allocations: 4 kB / 0.573 GB, free: 4.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04249/0.4613, allocations: 12.17 MB / 0.5849 GB, free: 8.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/14.8, allocations: 6.812 kB / 0.5849 GB, free: 8.246 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.94217293197289] Failed to read output from testmodel.py, exit status != 0: 15.036481331917457 15.051874214 14.664455691 Calling exit ...