Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.001799/0.001799, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001959/0.001959, allocations: 210.9 kB / 23.73 MB, free: 4.387 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1832/0.1832, allocations: 38.56 MB / 352.5 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 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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.002112/0.002112, allocations: 67.84 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3773, allocations: 62.47 MB / 0.5419 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008107/0.3854, allocations: 5.517 MB / 0.5473 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004668/0.39, allocations: 2.127 MB / 0.5494 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006073/0.3906, allocations: 28.34 kB / 0.5494 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007903/0.3914, allocations: 158.9 kB / 0.5496 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00166/0.3931, allocations: 460.4 kB / 0.55 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008421/0.3939, allocations: 254.8 kB / 0.5503 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.3953, allocations: 0.8663 MB / 0.5511 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000569/0.3959, allocations: 384 kB / 0.5515 GB, free: 8.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006726/0.3966, allocations: 362.5 kB / 0.5518 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006025/0.3972, allocations: 341.5 kB / 0.5521 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.3973, allocations: 54.69 kB / 0.5522 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003569/0.3976, allocations: 137.6 kB / 0.5523 GB, free: 8.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002621/0.3979, allocations: 197.4 kB / 0.5525 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.3982, allocations: 252.1 kB / 0.5528 GB, free: 8.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.3994, allocations: 0.7924 MB / 0.5535 GB, free: 7.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3994, allocations: 1.219 kB / 0.5535 GB, free: 7.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3994, allocations: 0 / 0.5535 GB, free: 7.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3994, allocations: 0 / 0.5535 GB, free: 7.676 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001916/0.4013, allocations: 0.8614 MB / 0.5544 GB, free: 6.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.4013, allocations: 12.8 kB / 0.5544 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.4015, allocations: 81.72 kB / 0.5545 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.4016, allocations: 71.69 kB / 0.5545 GB, free: 6.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009975/0.4026, allocations: 471 kB / 0.555 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.997e-05/0.4026, allocations: 31.31 kB / 0.555 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.4028, allocations: 52.97 kB / 0.5551 GB, free: 6.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008864/0.4036, allocations: 0.5464 MB / 0.5556 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.4037, allocations: 1.906 kB / 0.5556 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.507e-05/0.4037, allocations: 15.72 kB / 0.5556 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.105e-05/0.4038, allocations: 20.73 kB / 0.5556 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005904/0.4044, allocations: 332 kB / 0.5559 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.4073, allocations: 1.896 MB / 0.5578 GB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.4078, allocations: 225.8 kB / 0.558 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.4079, allocations: 74.61 kB / 0.5581 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.408, allocations: 4 kB / 0.5581 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.4083, allocations: 168.7 kB / 0.5583 GB, free: 3.262 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/0.4083, allocations: 3.938 kB / 0.5583 GB, free: 3.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00189/0.4102, allocations: 0.8698 MB / 0.5591 GB, free: 2.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.4103, allocations: 136.5 kB / 0.5592 GB, free: 2.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006131/0.4109, allocations: 453.7 kB / 0.5597 GB, free: 1.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.4109, allocations: 29.7 kB / 0.5597 GB, free: 1.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.4112, allocations: 308.4 kB / 0.56 GB, free: 1.395 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.4113, allocations: 87.28 kB / 0.5601 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.4114, allocations: 74.09 kB / 0.5601 GB, free: 1.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.4116, allocations: 363 kB / 0.5605 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.4118, allocations: 88.83 kB / 0.5606 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.4121, allocations: 251.1 kB / 0.5608 GB, free: 480 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004805/0.4126, allocations: 324 kB / 0.5611 GB, free: 96 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4126, allocations: 0 / 0.5611 GB, free: 96 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009494/0.4136, allocations: 433.6 kB / 0.5615 GB, free: 15.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.4136, allocations: 8 kB / 0.5615 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4136, allocations: 4.562 kB / 0.5615 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004308/0.414, allocations: 104.7 kB / 0.5616 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.4143, allocations: 71.91 kB / 0.5617 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.4166, allocations: 1.709 MB / 0.5634 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.4169, allocations: 20 kB / 0.5634 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.4169, allocations: 19.98 kB / 0.5634 GB, free: 13.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003106/0.4172, allocations: 205.7 kB / 0.5636 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.607e-05/0.4173, allocations: 59.61 kB / 0.5637 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006357/0.418, allocations: 284.5 kB / 0.5639 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.418, allocations: 8 kB / 0.564 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.418, allocations: 0 / 0.564 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.418, allocations: 3.984 kB / 0.564 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.4193, allocations: 0.7167 MB / 0.5647 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4193, allocations: 3.938 kB / 0.5647 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.4196, allocations: 47.91 kB / 0.5647 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002153/0.4198, allocations: 52.81 kB / 0.5648 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.4198, allocations: 7.984 kB / 0.5648 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.4212, allocations: 1.424 MB / 0.5662 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4212, allocations: 3.938 kB / 0.5662 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008062/0.422, allocations: 485.5 kB / 0.5666 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.4222, allocations: 63.69 kB / 0.5667 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.4222, allocations: 8 kB / 0.5667 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.4225, allocations: 11.98 kB / 0.5667 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.4225, allocations: 19.95 kB / 0.5667 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.4226, allocations: 12 kB / 0.5667 GB, free: 10 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004421/0.423, allocations: 307.1 kB / 0.567 GB, free: 9.703 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.423, allocations: 3.938 kB / 0.567 GB, free: 9.699 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000647/0.4237, allocations: 131.9 kB / 0.5672 GB, free: 9.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002919/0.4266, allocations: 1.402 MB / 0.5685 GB, free: 8.332 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.4276, allocations: 390.2 kB / 0.5689 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4276, allocations: 0 / 0.5689 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004168/0.428, allocations: 227.8 kB / 0.5691 GB, free: 7.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008217/0.4289, allocations: 129.1 kB / 0.5692 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006474/0.4353, allocations: 4.299 MB / 0.5734 GB, free: 3.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.4357, allocations: 277.7 kB / 0.5737 GB, free: 2.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002745/0.4359, allocations: 68.22 kB / 0.5738 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.4362, allocations: 179.4 kB / 0.5739 GB, free: 2.531 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4362, allocations: 4 kB / 0.5739 GB, free: 2.527 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05491/0.4911, allocations: 12.99 MB / 0.5866 GB, free: 5.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.96, allocations: 10.7 kB / 0.5866 GB, free: 5.664 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.075582892168313] Failed to read output from testmodel.py, exit status != 0: 14.155168750789016 14.171038466 13.768140726 Calling exit ...