Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.001203/0.001203, 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.001308/0.001308, allocations: 211.6 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.1864/0.1864, allocations: 38.56 MB / 352.5 MB, free: 12.28 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.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.002228/0.002228, allocations: 67.89 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3302, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007838/0.3381, allocations: 5.498 MB / 0.5473 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007061/0.3451, allocations: 4.103 MB / 0.5513 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.3456, allocations: 24.41 kB / 0.5513 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01245/0.358, allocations: 5.493 MB / 0.5567 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.3594, allocations: 446 kB / 0.5571 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008325/0.3602, allocations: 279.5 kB / 0.5574 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.3631, allocations: 1.801 MB / 0.5592 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.3642, allocations: 0.6299 MB / 0.5598 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009101/0.3651, allocations: 498.4 kB / 0.5602 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009655/0.3661, allocations: 0.5411 MB / 0.5608 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.3662, allocations: 72 kB / 0.5608 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.3666, allocations: 143.8 kB / 0.561 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004036/0.367, allocations: 335.1 kB / 0.5613 GB, free: 396 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004578/0.3675, allocations: 326.6 kB / 0.5616 GB, free: 68 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.3688, allocations: 1.047 MB / 0.5626 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3688, allocations: 0 / 0.5626 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3688, allocations: 0 / 0.5626 GB, free: 15.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.3688, allocations: 0 / 0.5626 GB, free: 15.02 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002016/0.3708, allocations: 0.9718 MB / 0.5636 GB, free: 14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.3709, allocations: 19.97 kB / 0.5636 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.371, allocations: 98.7 kB / 0.5637 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004232/0.3714, allocations: 108.4 kB / 0.5638 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.3726, allocations: 0.5552 MB / 0.5643 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.957e-05/0.3727, allocations: 79 kB / 0.5644 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.3728, allocations: 67.94 kB / 0.5645 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.3741, allocations: 0.8311 MB / 0.5653 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.3742, allocations: 7.938 kB / 0.5653 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.397e-05/0.3742, allocations: 20 kB / 0.5653 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.3744, allocations: 57.28 kB / 0.5654 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.3754, allocations: 0.6079 MB / 0.566 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004321/0.3797, allocations: 2.699 MB / 0.5686 GB, free: 8.668 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008833/0.3806, allocations: 423.8 kB / 0.569 GB, free: 8.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000418/0.381, allocations: 240 kB / 0.5692 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.3811, allocations: 8.656 kB / 0.5692 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.3816, allocations: 368 kB / 0.5696 GB, free: 7.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.475e-06/0.3816, allocations: 0 / 0.5696 GB, free: 7.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003468/0.3851, allocations: 1.739 MB / 0.5713 GB, free: 5.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3852, allocations: 156.3 kB / 0.5714 GB, free: 5.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.3857, allocations: 453.8 kB / 0.5719 GB, free: 5.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.3858, allocations: 33.7 kB / 0.5719 GB, free: 5.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.3861, allocations: 332.7 kB / 0.5722 GB, free: 4.766 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.3863, allocations: 166.6 kB / 0.5724 GB, free: 4.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.3865, allocations: 114.3 kB / 0.5725 GB, free: 4.484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.3867, allocations: 366.8 kB / 0.5728 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004027/0.3871, allocations: 254.9 kB / 0.5731 GB, free: 3.859 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005268/0.3876, allocations: 420.9 kB / 0.5735 GB, free: 3.379 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/0.3905, allocations: 1.26 MB / 0.5747 GB, free: 2.039 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3905, allocations: 0 / 0.5747 GB, free: 2.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001937/0.3924, allocations: 0.9921 MB / 0.5757 GB, free: 1.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.3925, allocations: 33.7 kB / 0.5757 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.3925, allocations: 11.98 kB / 0.5757 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000936/0.3934, allocations: 300.3 kB / 0.576 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.3945, allocations: 187.7 kB / 0.5762 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.4018, allocations: 5.027 MB / 0.5811 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.4023, allocations: 23.98 kB / 0.5811 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.342e-05/0.4023, allocations: 28 kB / 0.5812 GB, free: 11.19 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004425/0.4028, allocations: 307.2 kB / 0.5815 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.4029, allocations: 55.67 kB / 0.5815 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.4041, allocations: 0.6799 MB / 0.5822 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.4041, allocations: 4 kB / 0.5822 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4041, allocations: 4 kB / 0.5822 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.4041, allocations: 8.016 kB / 0.5822 GB, free: 10.09 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.4067, allocations: 1.412 MB / 0.5836 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.4067, allocations: 4.094 kB / 0.5836 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.408, allocations: 187.8 kB / 0.5837 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000248/0.4083, allocations: 86.45 kB / 0.5838 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.4083, allocations: 15.94 kB / 0.5838 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003455/0.4118, allocations: 3.935 MB / 0.5877 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4118, allocations: 384 / 0.5877 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.4136, allocations: 1.029 MB / 0.5887 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.4139, allocations: 99.5 kB / 0.5888 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.414, allocations: 19.98 kB / 0.5888 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/0.4143, allocations: 19.92 kB / 0.5888 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.4144, allocations: 35.94 kB / 0.5889 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.4144, allocations: 8 kB / 0.5889 GB, free: 2.766 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004768/0.4149, allocations: 315.1 kB / 0.5892 GB, free: 2.461 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4149, allocations: 4 kB / 0.5892 GB, free: 2.457 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008558/0.4158, allocations: 164 kB / 0.5893 GB, free: 2.297 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001926/0.4177, allocations: 1.598 MB / 0.5909 GB, free: 0.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.4198, allocations: 1.006 MB / 0.5919 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4198, allocations: 0 / 0.5919 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009503/0.4208, allocations: 0.6504 MB / 0.5925 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008429/0.4216, allocations: 133.1 kB / 0.5926 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.432, allocations: 6.293 MB / 0.5988 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.4326, allocations: 389.9 kB / 0.5991 GB, free: 7.742 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000393/0.433, allocations: 116.7 kB / 0.5993 GB, free: 7.629 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003669/0.4333, allocations: 211.4 kB / 0.5995 GB, free: 7.426 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4333, allocations: 0 / 0.5995 GB, free: 7.426 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05899/0.4923, allocations: 15.13 MB / 0.6142 GB, free: 8.539 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.08, allocations: 7.922 kB / 0.6142 GB, free: 8.531 MB / 462.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.185227626003325] Failed to read output from testmodel.py, exit status != 0: 14.21381076797843 14.230217506 13.858031809 Calling exit ...