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.001464/0.001464, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001585/0.001585, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.564/1.564, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.186/0.186, allocations: 38.52 MB / 353.2 MB, free: 12.58 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.002259/0.002259, allocations: 68.17 kB / 493.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.355, allocations: 62.47 MB / 0.5428 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007324/0.3623, allocations: 5.368 MB / 0.548 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.366, allocations: 2.17 MB / 0.5501 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003971/0.3664, allocations: 22.75 kB / 0.5501 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006386/0.367, allocations: 150.7 kB / 0.5503 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.3684, allocations: 407.3 kB / 0.5507 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000729/0.3691, allocations: 227 kB / 0.5509 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.3704, allocations: 0.7068 MB / 0.5516 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005491/0.371, allocations: 334 kB / 0.5519 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006003/0.3716, allocations: 317.9 kB / 0.5522 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005255/0.3721, allocations: 310 kB / 0.5525 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.802e-05/0.3722, allocations: 48.31 kB / 0.5525 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003487/0.3725, allocations: 144.8 kB / 0.5527 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.3727, allocations: 151.9 kB / 0.5528 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.373, allocations: 270.6 kB / 0.5531 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.374, allocations: 0.7074 MB / 0.5538 GB, free: 8.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.374, allocations: 0 / 0.5538 GB, free: 8.254 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.374, allocations: 0 / 0.5538 GB, free: 8.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.3741, allocations: 0 / 0.5538 GB, free: 8.254 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.001939/0.376, allocations: 0.8049 MB / 0.5546 GB, free: 7.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.3761, allocations: 17.64 kB / 0.5546 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.707e-05/0.3761, allocations: 9.281 kB / 0.5546 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.3762, allocations: 80.58 kB / 0.5547 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.3763, allocations: 63.56 kB / 0.5547 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.3772, allocations: 419.8 kB / 0.5551 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.291e-05/0.3773, allocations: 27.31 kB / 0.5552 GB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.843e-05/0.3774, allocations: 41.14 kB / 0.5552 GB, free: 7.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/0.3781, allocations: 469.7 kB / 0.5556 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.3781, allocations: 1.094 kB / 0.5556 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.3782, allocations: 16.56 kB / 0.5557 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.3782, allocations: 9.438 kB / 0.5557 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.3787, allocations: 276.3 kB / 0.5559 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.3811, allocations: 1.802 MB / 0.5577 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.3817, allocations: 231.8 kB / 0.5579 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.3818, allocations: 84.77 kB / 0.558 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.3819, allocations: 10.33 kB / 0.558 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/0.3822, allocations: 171.3 kB / 0.5582 GB, free: 4.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.3822, allocations: 0 / 0.5582 GB, free: 4.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001882/0.3841, allocations: 0.8567 MB / 0.559 GB, free: 3.777 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.767e-05/0.3842, allocations: 136.5 kB / 0.5591 GB, free: 3.613 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005533/0.3847, allocations: 421.8 kB / 0.5595 GB, free: 3.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.3848, allocations: 29.7 kB / 0.5596 GB, free: 3.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.385, allocations: 276.3 kB / 0.5598 GB, free: 2.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.3851, allocations: 95.2 kB / 0.5599 GB, free: 2.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3853, allocations: 73.66 kB / 0.56 GB, free: 2.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3855, allocations: 354.8 kB / 0.5603 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.3856, allocations: 83.95 kB / 0.5604 GB, free: 2.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.3859, allocations: 212.2 kB / 0.5606 GB, free: 2.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004634/0.3864, allocations: 323.1 kB / 0.5609 GB, free: 1.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3864, allocations: 0 / 0.5609 GB, free: 1.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008831/0.3873, allocations: 421.7 kB / 0.5613 GB, free: 1.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3873, allocations: 8 kB / 0.5613 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3873, allocations: 4 kB / 0.5613 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004565/0.3878, allocations: 101.1 kB / 0.5614 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.388, allocations: 67.84 kB / 0.5615 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.3905, allocations: 1.906 MB / 0.5634 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.3908, allocations: 27.88 kB / 0.5634 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.3909, allocations: 20 kB / 0.5634 GB, free: 14.96 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.0002906/0.3912, allocations: 197.7 kB / 0.5636 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.872e-05/0.3912, allocations: 43.78 kB / 0.5636 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006453/0.3919, allocations: 302 kB / 0.5639 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3919, allocations: 4 kB / 0.5639 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3919, allocations: 0 / 0.5639 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3919, allocations: 7.984 kB / 0.5639 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.3931, allocations: 0.741 MB / 0.5647 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3931, allocations: 4 kB / 0.5647 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.3934, allocations: 47.91 kB / 0.5647 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.3936, allocations: 48.75 kB / 0.5647 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.3936, allocations: 8 kB / 0.5648 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.3951, allocations: 1.44 MB / 0.5662 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3951, allocations: 0 / 0.5662 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008147/0.3959, allocations: 0.5067 MB / 0.5667 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.396, allocations: 59.73 kB / 0.5667 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.3961, allocations: 8 kB / 0.5667 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.3963, allocations: 11.98 kB / 0.5667 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.3964, allocations: 32.12 kB / 0.5668 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.3964, allocations: 8 kB / 0.5668 GB, free: 11.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003648/0.3968, allocations: 291.1 kB / 0.567 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3968, allocations: 0 / 0.567 GB, free: 11.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005936/0.3974, allocations: 119.9 kB / 0.5672 GB, free: 10.89 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.002557/0.3999, allocations: 1.384 MB / 0.5685 GB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009383/0.4009, allocations: 395.1 kB / 0.5689 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4009, allocations: 192 / 0.5689 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004028/0.4013, allocations: 242.5 kB / 0.5691 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007128/0.402, allocations: 131.7 kB / 0.5692 GB, free: 8.871 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.408, allocations: 4.1 MB / 0.5733 GB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.4085, allocations: 0.8543 MB / 0.5741 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002815/0.4087, allocations: 75.28 kB / 0.5742 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.409, allocations: 159.4 kB / 0.5743 GB, free: 3.445 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.409, allocations: 0 / 0.5743 GB, free: 3.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04018/0.4492, allocations: 11.83 MB / 0.5859 GB, free: 7.719 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.5, allocations: 10.58 kB / 0.5859 GB, free: 7.711 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.669794315996114] Failed to read output from testmodel.py, exit status != 0: 14.739394062955398 14.766865643 14.387914154 Calling exit ...