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.001665/0.001665, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002108/0.002108, allocations: 216.3 kB / 23.75 MB, free: 4.668 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.1884/0.1884, allocations: 38.53 MB / 352.5 MB, free: 12.49 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.002161/0.002161, allocations: 71.89 kB / 492.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3313, allocations: 62.46 MB / 0.542 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008828/0.3401, allocations: 5.38 MB / 0.5472 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.3436, allocations: 2.166 MB / 0.5494 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002696/0.3439, allocations: 21.97 kB / 0.5494 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005061/0.3444, allocations: 155.7 kB / 0.5495 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009078/0.3453, allocations: 407.1 kB / 0.5499 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.3458, allocations: 217.8 kB / 0.5501 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009436/0.3468, allocations: 0.7102 MB / 0.5508 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004527/0.3472, allocations: 343.1 kB / 0.5511 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004819/0.3477, allocations: 310.7 kB / 0.5514 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.3481, allocations: 306.1 kB / 0.5517 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.697e-05/0.3482, allocations: 51.25 kB / 0.5518 GB, free: 8.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.3485, allocations: 144.2 kB / 0.5519 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.3487, allocations: 152.5 kB / 0.5521 GB, free: 8.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.3489, allocations: 266.6 kB / 0.5523 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008612/0.3498, allocations: 0.7074 MB / 0.553 GB, free: 8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3498, allocations: 4 kB / 0.553 GB, free: 7.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.3498, allocations: 5.141 kB / 0.553 GB, free: 7.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.3498, allocations: 0 / 0.553 GB, free: 7.992 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.001576/0.3514, allocations: 0.8017 MB / 0.5538 GB, free: 7.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.3514, allocations: 17.95 kB / 0.5538 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.67e-05/0.3515, allocations: 74.62 kB / 0.5539 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3516, allocations: 60.94 kB / 0.554 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000796/0.3524, allocations: 419.2 kB / 0.5544 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.3524, allocations: 27.75 kB / 0.5544 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.165e-05/0.3525, allocations: 45.09 kB / 0.5544 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.3532, allocations: 462.4 kB / 0.5549 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3532, allocations: 5.406 kB / 0.5549 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.84e-05/0.3533, allocations: 15 kB / 0.5549 GB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3533, allocations: 13.56 kB / 0.5549 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004678/0.3537, allocations: 272.8 kB / 0.5552 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.3561, allocations: 1.798 MB / 0.5569 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005113/0.3566, allocations: 234.6 kB / 0.5571 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.3567, allocations: 83.59 kB / 0.5572 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.3568, allocations: 15.33 kB / 0.5572 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.3571, allocations: 169 kB / 0.5574 GB, free: 4.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.3571, allocations: 0 / 0.5574 GB, free: 4.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001714/0.3588, allocations: 0.8526 MB / 0.5582 GB, free: 3.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/0.3589, allocations: 136.5 kB / 0.5584 GB, free: 3.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.3594, allocations: 421.8 kB / 0.5588 GB, free: 2.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.3594, allocations: 33.7 kB / 0.5588 GB, free: 2.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.3596, allocations: 276.1 kB / 0.559 GB, free: 2.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.3597, allocations: 91.2 kB / 0.5591 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3598, allocations: 77.72 kB / 0.5592 GB, free: 2.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.36, allocations: 354.8 kB / 0.5595 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3602, allocations: 79.95 kB / 0.5596 GB, free: 2.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.3604, allocations: 216.2 kB / 0.5598 GB, free: 1.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.3609, allocations: 311.2 kB / 0.5601 GB, free: 1.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3609, allocations: 0 / 0.5601 GB, free: 1.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008738/0.3618, allocations: 433.5 kB / 0.5605 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3618, allocations: 8 kB / 0.5605 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3618, allocations: 4.531 kB / 0.5606 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004176/0.3622, allocations: 96.77 kB / 0.5606 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.3625, allocations: 67.84 kB / 0.5607 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.365, allocations: 1.917 MB / 0.5626 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.3653, allocations: 23.94 kB / 0.5626 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.3653, allocations: 19.94 kB / 0.5626 GB, free: 14.72 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.0002477/0.3656, allocations: 197.8 kB / 0.5628 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.989e-05/0.3656, allocations: 43.72 kB / 0.5629 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006306/0.3663, allocations: 306 kB / 0.5631 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3663, allocations: 0 / 0.5631 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3663, allocations: 7.984 kB / 0.5632 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.3663, allocations: 0 / 0.5632 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.3674, allocations: 0.7406 MB / 0.5639 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3674, allocations: 0 / 0.5639 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.3677, allocations: 43.97 kB / 0.5639 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002148/0.3679, allocations: 52.75 kB / 0.564 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.3679, allocations: 7.984 kB / 0.564 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.3693, allocations: 1.44 MB / 0.5654 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.3693, allocations: 8.016 kB / 0.5654 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007956/0.3701, allocations: 0.5002 MB / 0.5659 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3702, allocations: 55.73 kB / 0.5659 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.384e-05/0.3703, allocations: 8 kB / 0.5659 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.3705, allocations: 15.98 kB / 0.566 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.397e-05/0.3706, allocations: 23.95 kB / 0.566 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.3706, allocations: 12.17 kB / 0.566 GB, free: 11.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003402/0.3709, allocations: 291.1 kB / 0.5663 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3709, allocations: 0 / 0.5663 GB, free: 10.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.3715, allocations: 123.9 kB / 0.5664 GB, free: 10.64 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.002517/0.374, allocations: 1.389 MB / 0.5677 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008858/0.3749, allocations: 391.2 kB / 0.5681 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3749, allocations: 0 / 0.5681 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.3753, allocations: 238.5 kB / 0.5683 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006698/0.376, allocations: 129.2 kB / 0.5685 GB, free: 8.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006295/0.3823, allocations: 4.103 MB / 0.5725 GB, free: 4.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.3828, allocations: 0.8543 MB / 0.5733 GB, free: 3.426 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.383, allocations: 67.36 kB / 0.5734 GB, free: 3.359 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.3833, allocations: 159.4 kB / 0.5735 GB, free: 3.203 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3833, allocations: 0 / 0.5735 GB, free: 3.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/0.4307, allocations: 11.81 MB / 0.5851 GB, free: 7.488 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.06, allocations: 6.688 kB / 0.5851 GB, free: 7.484 MB / 430.1 MB " [Timeout remaining time 646] (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.081386093981564] Failed to read output from testmodel.py, exit status != 0: 14.246964712860063 14.263059978 13.909860912 Calling exit ...