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.001362/0.001362, 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.00171/0.00171, allocations: 217.2 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1883/0.1883, allocations: 38.52 MB / 352.4 MB, free: 12.55 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.003297/0.003297, allocations: 67.88 kB / 492.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3616, allocations: 62.48 MB / 0.542 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008352/0.3699, allocations: 5.901 MB / 0.5478 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008317/0.3782, allocations: 4.535 MB / 0.5522 GB, free: 8.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006357/0.3789, allocations: 25.12 kB / 0.5522 GB, free: 8.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01218/0.391, allocations: 5.544 MB / 0.5576 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001668/0.3927, allocations: 442 kB / 0.5581 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000914/0.3936, allocations: 275.5 kB / 0.5583 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003013/0.3966, allocations: 1.816 MB / 0.5601 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008767/0.3975, allocations: 0.6259 MB / 0.5607 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000721/0.3982, allocations: 490.4 kB / 0.5612 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008185/0.399, allocations: 0.5411 MB / 0.5617 GB, free: 332 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.3992, allocations: 72 kB / 0.5618 GB, free: 260 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003454/0.3995, allocations: 159.8 kB / 0.5619 GB, free: 100 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003579/0.3999, allocations: 327.2 kB / 0.5622 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004298/0.4003, allocations: 398.2 kB / 0.5626 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.4016, allocations: 1.039 MB / 0.5636 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4016, allocations: 4 kB / 0.5636 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4016, allocations: 0 / 0.5636 GB, free: 14.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.4016, allocations: 0 / 0.5636 GB, free: 14.34 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.001959/0.4036, allocations: 0.968 MB / 0.5646 GB, free: 13.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.4036, allocations: 15.98 kB / 0.5646 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.4038, allocations: 110.7 kB / 0.5647 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004259/0.4042, allocations: 104.4 kB / 0.5648 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.4055, allocations: 0.5552 MB / 0.5653 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.4056, allocations: 83 kB / 0.5654 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.4057, allocations: 63.94 kB / 0.5655 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.407, allocations: 0.806 MB / 0.5663 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.4071, allocations: 4 kB / 0.5663 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.4071, allocations: 27.92 kB / 0.5663 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/0.4073, allocations: 49.28 kB / 0.5663 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.4083, allocations: 0.5906 MB / 0.5669 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/0.413, allocations: 2.843 MB / 0.5697 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.4139, allocations: 402.1 kB / 0.5701 GB, free: 7.496 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/0.4142, allocations: 222.2 kB / 0.5703 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.4142, allocations: 8.641 kB / 0.5703 GB, free: 7.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/0.4148, allocations: 338.3 kB / 0.5706 GB, free: 6.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.4148, allocations: 0 / 0.5706 GB, free: 6.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003265/0.4181, allocations: 1.685 MB / 0.5723 GB, free: 5.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.784e-05/0.4182, allocations: 148.4 kB / 0.5724 GB, free: 4.988 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/0.4187, allocations: 445.9 kB / 0.5728 GB, free: 4.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.4188, allocations: 33.7 kB / 0.5729 GB, free: 4.504 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.4191, allocations: 340.6 kB / 0.5732 GB, free: 4.164 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.4193, allocations: 166.6 kB / 0.5733 GB, free: 4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.4195, allocations: 114.3 kB / 0.5735 GB, free: 3.883 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.4197, allocations: 366.8 kB / 0.5738 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.4201, allocations: 229.2 kB / 0.574 GB, free: 3.289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.4206, allocations: 397.7 kB / 0.5744 GB, free: 2.836 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/0.4234, allocations: 1.252 MB / 0.5756 GB, free: 1.504 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4234, allocations: 4 kB / 0.5756 GB, free: 1.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001835/0.4252, allocations: 0.9556 MB / 0.5766 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.4252, allocations: 36.52 kB / 0.5766 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4252, allocations: 11.98 kB / 0.5766 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009268/0.4262, allocations: 305.4 kB / 0.5769 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009244/0.4271, allocations: 171.7 kB / 0.5771 GB, free: 0 / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007473/0.4346, allocations: 5.085 MB / 0.582 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.435, allocations: 27.97 kB / 0.5821 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.163e-05/0.4351, allocations: 20 kB / 0.5821 GB, free: 10.64 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.0004847/0.4356, allocations: 303.3 kB / 0.5824 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.4357, allocations: 55.61 kB / 0.5824 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.437, allocations: 0.6548 MB / 0.5831 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.437, allocations: 11.98 kB / 0.5831 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.437, allocations: 0 / 0.5831 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.437, allocations: 7.984 kB / 0.5831 GB, free: 9.578 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.002493/0.4395, allocations: 1.476 MB / 0.5845 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.4395, allocations: 7.938 kB / 0.5845 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.4407, allocations: 183.9 kB / 0.5847 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002518/0.4409, allocations: 90.39 kB / 0.5848 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.441, allocations: 12 kB / 0.5848 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.4444, allocations: 3.951 MB / 0.5887 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4444, allocations: 0 / 0.5887 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.446, allocations: 0.9785 MB / 0.5896 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.4462, allocations: 99.56 kB / 0.5897 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/0.4463, allocations: 15.98 kB / 0.5897 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.4466, allocations: 23.98 kB / 0.5897 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.4467, allocations: 35.94 kB / 0.5898 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.4467, allocations: 12 kB / 0.5898 GB, free: 2.223 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003823/0.4471, allocations: 311.1 kB / 0.5901 GB, free: 1.922 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4471, allocations: 0 / 0.5901 GB, free: 1.922 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007201/0.4478, allocations: 164 kB / 0.5902 GB, free: 1.762 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.001823/0.4496, allocations: 1.54 MB / 0.5918 GB, free: 164 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001918/0.4515, allocations: 0.9482 MB / 0.5927 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4515, allocations: 0 / 0.5927 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008513/0.4524, allocations: 0.633 MB / 0.5933 GB, free: 14.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007074/0.4531, allocations: 138.8 kB / 0.5934 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009675/0.4628, allocations: 6.153 MB / 0.5994 GB, free: 7.941 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007038/0.4635, allocations: 0.9762 MB / 0.6004 GB, free: 6.938 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004093/0.4639, allocations: 120.7 kB / 0.6005 GB, free: 6.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.4642, allocations: 215.4 kB / 0.6007 GB, free: 6.613 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4642, allocations: 0 / 0.6007 GB, free: 6.613 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05464/0.5188, allocations: 14.78 MB / 0.6151 GB, free: 8.016 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.2, allocations: 10.5 kB / 0.6152 GB, free: 8.012 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.28724520099786] Failed to read output from testmodel.py, exit status != 0: 14.335462073999224 14.363029204 13.955875224 Calling exit ...