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.001751/0.001751, 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.002299/0.002299, 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2646/0.2646, allocations: 38.52 MB / 353.2 MB, free: 12.58 MB / 286.1 MB " [Timeout remaining time 179] 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.002212/0.002212, allocations: 71.02 kB / 493.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3343, allocations: 62.47 MB / 0.5428 GB, free: 476 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007851/0.3422, allocations: 5.375 MB / 0.548 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004947/0.3471, allocations: 2.163 MB / 0.5501 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005427/0.3477, allocations: 18.41 kB / 0.5501 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008127/0.3485, allocations: 163.5 kB / 0.5503 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.3503, allocations: 398 kB / 0.5507 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.3511, allocations: 227.1 kB / 0.5509 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.3524, allocations: 0.7101 MB / 0.5516 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006411/0.3531, allocations: 330.3 kB / 0.5519 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008045/0.3539, allocations: 318.9 kB / 0.5522 GB, free: 9.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006521/0.3545, allocations: 301.9 kB / 0.5525 GB, free: 8.918 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.896e-05/0.3546, allocations: 56.28 kB / 0.5526 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004826/0.3551, allocations: 148.1 kB / 0.5527 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.3553, allocations: 143.8 kB / 0.5528 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.3557, allocations: 282.7 kB / 0.5531 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.3571, allocations: 0.6953 MB / 0.5538 GB, free: 8.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3571, allocations: 1.156 kB / 0.5538 GB, free: 8.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3571, allocations: 0 / 0.5538 GB, free: 8.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3571, allocations: 0 / 0.5538 GB, free: 8.07 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.002022/0.3591, allocations: 0.8022 MB / 0.5546 GB, free: 7.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3591, allocations: 13.73 kB / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.628e-05/0.3592, allocations: 9.969 kB / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.3593, allocations: 83.56 kB / 0.5547 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3594, allocations: 59.34 kB / 0.5547 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3605, allocations: 428.5 kB / 0.5551 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.3605, allocations: 28.16 kB / 0.5552 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.768e-05/0.3606, allocations: 39.92 kB / 0.5552 GB, free: 6.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000934/0.3615, allocations: 462.6 kB / 0.5556 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.3615, allocations: 5.172 kB / 0.5556 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/0.3616, allocations: 15.31 kB / 0.5557 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3616, allocations: 14.09 kB / 0.5557 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006066/0.3622, allocations: 280.3 kB / 0.5559 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.365, allocations: 1.794 MB / 0.5577 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006109/0.3656, allocations: 243.5 kB / 0.5579 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.3657, allocations: 84.92 kB / 0.558 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.3658, allocations: 2.688 kB / 0.558 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003383/0.3661, allocations: 168.4 kB / 0.5582 GB, free: 4.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.3661, allocations: 0 / 0.5582 GB, free: 4.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.002112/0.3682, allocations: 0.8579 MB / 0.559 GB, free: 3.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.881e-05/0.3683, allocations: 136.8 kB / 0.5591 GB, free: 3.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000662/0.369, allocations: 417.8 kB / 0.5595 GB, free: 3.031 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.369, allocations: 29.7 kB / 0.5596 GB, free: 2.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.3693, allocations: 272.1 kB / 0.5598 GB, free: 2.727 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.3694, allocations: 99.36 kB / 0.5599 GB, free: 2.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3695, allocations: 73.64 kB / 0.56 GB, free: 2.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3697, allocations: 346.8 kB / 0.5603 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.3699, allocations: 87.89 kB / 0.5604 GB, free: 2.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.3703, allocations: 216.2 kB / 0.5606 GB, free: 1.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005538/0.3708, allocations: 319.1 kB / 0.5609 GB, free: 1.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3708, allocations: 0 / 0.5609 GB, free: 1.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001094/0.3719, allocations: 437.6 kB / 0.5613 GB, free: 1.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3719, allocations: 4 kB / 0.5613 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3719, allocations: 4 kB / 0.5613 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004932/0.3724, allocations: 89.2 kB / 0.5614 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003053/0.3727, allocations: 79.78 kB / 0.5615 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.3758, allocations: 1.903 MB / 0.5634 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.3762, allocations: 35.88 kB / 0.5634 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.3762, allocations: 12 kB / 0.5634 GB, free: 14.8 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.0003093/0.3765, allocations: 193.8 kB / 0.5636 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.441e-05/0.3766, allocations: 43.72 kB / 0.5636 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008167/0.3774, allocations: 302 kB / 0.5639 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.3775, allocations: 4 kB / 0.5639 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3775, allocations: 4 kB / 0.5639 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3775, allocations: 0 / 0.5639 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.379, allocations: 0.7406 MB / 0.5646 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.379, allocations: 0 / 0.5646 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.3793, allocations: 47.92 kB / 0.5647 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002671/0.3796, allocations: 48.8 kB / 0.5647 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.3796, allocations: 8 kB / 0.5647 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.3816, allocations: 1.444 MB / 0.5662 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3816, allocations: 240 / 0.5662 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.3828, allocations: 0.5003 MB / 0.5666 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/0.383, allocations: 59.73 kB / 0.5667 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.012e-05/0.3831, allocations: 11.98 kB / 0.5667 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.3835, allocations: 12 kB / 0.5667 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3836, allocations: 31.83 kB / 0.5668 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/0.3836, allocations: 4 kB / 0.5668 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005565/0.3842, allocations: 299.1 kB / 0.567 GB, free: 10.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3842, allocations: 0 / 0.567 GB, free: 10.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001078/0.3853, allocations: 119.9 kB / 0.5672 GB, free: 10.73 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.002901/0.3882, allocations: 1.383 MB / 0.5685 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.3892, allocations: 394.7 kB / 0.5689 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3892, allocations: 0 / 0.5689 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004598/0.3897, allocations: 247.2 kB / 0.5691 GB, free: 8.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.3905, allocations: 121.8 kB / 0.5692 GB, free: 8.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006577/0.397, allocations: 4.11 MB / 0.5733 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000538/0.3976, allocations: 0.862 MB / 0.5741 GB, free: 3.508 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002602/0.3978, allocations: 63.36 kB / 0.5742 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.3981, allocations: 167.4 kB / 0.5743 GB, free: 3.281 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3981, allocations: 0 / 0.5743 GB, free: 3.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.4416, allocations: 11.83 MB / 0.5859 GB, free: 7.566 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.63, allocations: 14.56 kB / 0.5859 GB, free: 7.555 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.8720775989932] Failed to read output from testmodel.py, exit status != 0: 14.87171858100919 14.889803796 14.529133566 Calling exit ...