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.001408/0.001408, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001433/0.001433, allocations: 209.8 kB / 23.73 MB, free: 4.523 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.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1905/0.1905, allocations: 38.55 MB / 352.5 MB, free: 12.32 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.002061/0.002061, allocations: 64.19 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3215, allocations: 62.47 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00933/0.3308, allocations: 5.514 MB / 0.5473 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004719/0.3355, allocations: 2.135 MB / 0.5494 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006136/0.3361, allocations: 24.03 kB / 0.5494 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008079/0.3369, allocations: 167.8 kB / 0.5496 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.3387, allocations: 455.6 kB / 0.55 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.3396, allocations: 242.6 kB / 0.5503 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.3413, allocations: 0.8634 MB / 0.5511 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007495/0.3421, allocations: 398.8 kB / 0.5515 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009196/0.343, allocations: 370.1 kB / 0.5518 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008788/0.3439, allocations: 362.1 kB / 0.5522 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.344, allocations: 55.12 kB / 0.5522 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004723/0.3445, allocations: 149.5 kB / 0.5524 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002826/0.3448, allocations: 188.9 kB / 0.5526 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005372/0.3453, allocations: 249.2 kB / 0.5528 GB, free: 8.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.3467, allocations: 0.7917 MB / 0.5536 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3467, allocations: 1.094 kB / 0.5536 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3467, allocations: 0 / 0.5536 GB, free: 7.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.025e-05/0.3467, allocations: 4 kB / 0.5536 GB, free: 7.629 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.002825/0.3496, allocations: 0.8609 MB / 0.5544 GB, free: 6.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3496, allocations: 13.52 kB / 0.5544 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001592/0.3498, allocations: 85.62 kB / 0.5545 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.35, allocations: 67.86 kB / 0.5546 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3512, allocations: 478.9 kB / 0.555 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.828e-05/0.3512, allocations: 34.84 kB / 0.5551 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.3514, allocations: 44.72 kB / 0.5551 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.3524, allocations: 0.5466 MB / 0.5556 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.3524, allocations: 2.188 kB / 0.5556 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.3525, allocations: 16.38 kB / 0.5557 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.314e-05/0.3525, allocations: 16.41 kB / 0.5557 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006569/0.3532, allocations: 344.9 kB / 0.556 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.3562, allocations: 1.884 MB / 0.5578 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.3567, allocations: 217.8 kB / 0.558 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.3568, allocations: 86.61 kB / 0.5581 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.822e-05/0.3569, allocations: 7.984 kB / 0.5581 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003048/0.3572, allocations: 164.7 kB / 0.5583 GB, free: 3.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.144e-06/0.3572, allocations: 0 / 0.5583 GB, free: 3.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001974/0.3591, allocations: 0.8743 MB / 0.5591 GB, free: 2.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.3592, allocations: 132.8 kB / 0.5593 GB, free: 2.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006314/0.3599, allocations: 457.7 kB / 0.5597 GB, free: 1.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.3599, allocations: 29.7 kB / 0.5597 GB, free: 1.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.3602, allocations: 304.2 kB / 0.56 GB, free: 1.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.333e-05/0.3602, allocations: 91.27 kB / 0.5601 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.3604, allocations: 74.09 kB / 0.5602 GB, free: 1.199 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3606, allocations: 358.7 kB / 0.5605 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.3607, allocations: 84.83 kB / 0.5606 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.3611, allocations: 251.1 kB / 0.5608 GB, free: 456 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004498/0.3615, allocations: 324 kB / 0.5612 GB, free: 72 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3615, allocations: 4 kB / 0.5612 GB, free: 68 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009521/0.3625, allocations: 441.9 kB / 0.5616 GB, free: 15.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3625, allocations: 8 kB / 0.5616 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.3625, allocations: 4 kB / 0.5616 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004221/0.3629, allocations: 88.77 kB / 0.5617 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.3632, allocations: 76.06 kB / 0.5617 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.3655, allocations: 1.717 MB / 0.5634 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.3658, allocations: 20.06 kB / 0.5634 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.3658, allocations: 23.98 kB / 0.5635 GB, free: 13.57 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.0003193/0.3662, allocations: 209.6 kB / 0.5637 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.263e-05/0.3663, allocations: 51.61 kB / 0.5637 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006214/0.3669, allocations: 284.5 kB / 0.564 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3669, allocations: 4 kB / 0.564 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3669, allocations: 4 kB / 0.564 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3669, allocations: 4 kB / 0.564 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.3682, allocations: 0.7128 MB / 0.5647 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3682, allocations: 3.938 kB / 0.5647 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.3685, allocations: 43.97 kB / 0.5647 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.3687, allocations: 52.73 kB / 0.5648 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.3687, allocations: 11.98 kB / 0.5648 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.3702, allocations: 1.432 MB / 0.5662 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3702, allocations: 0 / 0.5662 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/0.371, allocations: 478.1 kB / 0.5667 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.3712, allocations: 63.69 kB / 0.5667 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.86e-05/0.3712, allocations: 4 kB / 0.5667 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.3715, allocations: 16.05 kB / 0.5667 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.3716, allocations: 27.95 kB / 0.5668 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.3716, allocations: 8 kB / 0.5668 GB, free: 9.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003996/0.372, allocations: 307.1 kB / 0.5671 GB, free: 9.672 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.372, allocations: 0 / 0.5671 GB, free: 9.672 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006231/0.3726, allocations: 127.9 kB / 0.5672 GB, free: 9.547 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.002866/0.3755, allocations: 1.409 MB / 0.5686 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009237/0.3764, allocations: 383.2 kB / 0.5689 GB, free: 7.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3764, allocations: 4.062 kB / 0.5689 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004218/0.3768, allocations: 230.5 kB / 0.5692 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008624/0.3777, allocations: 133.4 kB / 0.5693 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0077/0.3854, allocations: 4.295 MB / 0.5735 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.3857, allocations: 285.7 kB / 0.5737 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.386, allocations: 68.22 kB / 0.5738 GB, free: 2.668 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.3863, allocations: 175.4 kB / 0.574 GB, free: 2.496 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3863, allocations: 0 / 0.574 GB, free: 2.496 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05208/0.4383, allocations: 13.12 MB / 0.5868 GB, free: 5.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.41, allocations: 10.64 kB / 0.5868 GB, free: 5.5 MB / 430.1 MB " [Timeout remaining time 645] (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.580559727037326] Failed to read output from testmodel.py, exit status != 0: 14.616481275996193 14.644650294 14.292307766 Calling exit ...