Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.00139/0.00139, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001496/0.001496, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.537/1.537, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.1882/0.1882, allocations: 38.51 MB / 349.4 MB, free: 2.582 MB / 270.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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",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.002109/0.002109, allocations: 67.91 kB / 487.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1272, allocations: 62.41 MB / 0.5373 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01045/0.1376, allocations: 6.408 MB / 0.5436 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005546/0.1432, allocations: 2.73 MB / 0.5463 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007892/0.144, allocations: 39.69 kB / 0.5463 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.1459, allocations: 338.1 kB / 0.5466 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.1489, allocations: 0.5909 MB / 0.5472 GB, free: 13.42 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.1503, allocations: 283.5 kB / 0.5475 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.153, allocations: 1.211 MB / 0.5487 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.1545, allocations: 0.7635 MB / 0.5494 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.1559, allocations: 0.4944 MB / 0.5499 GB, free: 10.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.1572, allocations: 0.5567 MB / 0.5504 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003082/0.1575, allocations: 84 kB / 0.5505 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001039/0.1585, allocations: 351.5 kB / 0.5508 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006132/0.1591, allocations: 343.1 kB / 0.5512 GB, free: 9.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009597/0.1601, allocations: 465.9 kB / 0.5516 GB, free: 8.883 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002488/0.1626, allocations: 1.378 MB / 0.553 GB, free: 7.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1626, allocations: 0 / 0.553 GB, free: 7.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1626, allocations: 0 / 0.553 GB, free: 7.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.197e-05/0.1627, allocations: 0 / 0.553 GB, free: 7.5 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.003162/0.1658, allocations: 1.175 MB / 0.5541 GB, free: 6.273 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.1659, allocations: 12.03 kB / 0.5541 GB, free: 6.262 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.789e-05/0.1659, allocations: 18.19 kB / 0.5541 GB, free: 6.242 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002486/0.1662, allocations: 114.7 kB / 0.5543 GB, free: 6.121 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009048/0.1671, allocations: 148.3 kB / 0.5544 GB, free: 5.977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.1685, allocations: 0.6983 MB / 0.5551 GB, free: 5.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.1687, allocations: 79.7 kB / 0.5552 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.1688, allocations: 71.98 kB / 0.5552 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.1706, allocations: 0.9608 MB / 0.5562 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.1706, allocations: 3.953 kB / 0.5562 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.963e-05/0.1707, allocations: 28 kB / 0.5562 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.1708, allocations: 53.28 kB / 0.5562 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.1723, allocations: 0.7858 MB / 0.557 GB, free: 3.211 MB / 414.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 preOpt removeSimpleEquations (simulation): time 0.005683/0.178, allocations: 3.837 MB / 0.5608 GB, free: 15.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/0.1789, allocations: 497.2 kB / 0.5612 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.1794, allocations: 231 kB / 0.5614 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.1794, allocations: 11.84 kB / 0.5615 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.1795, allocations: 50.5 kB / 0.5615 GB, free: 14.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.264e-06/0.1795, allocations: 0 / 0.5615 GB, free: 14.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.01116/0.1906, allocations: 3.77 MB / 0.5652 GB, free: 10.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/0.1908, allocations: 115.2 kB / 0.5653 GB, free: 10.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007635/0.1916, allocations: 0.5262 MB / 0.5658 GB, free: 9.715 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.1916, allocations: 37.7 kB / 0.5658 GB, free: 9.672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/0.192, allocations: 408.1 kB / 0.5662 GB, free: 9.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.1922, allocations: 198.3 kB / 0.5664 GB, free: 9.074 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.1924, allocations: 134.6 kB / 0.5666 GB, free: 8.934 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.1927, allocations: 370.8 kB / 0.5669 GB, free: 8.562 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005115/0.1932, allocations: 281.8 kB / 0.5672 GB, free: 8.289 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007229/0.1939, allocations: 0.5072 MB / 0.5677 GB, free: 7.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/0.1952, allocations: 0.852 MB / 0.5685 GB, free: 6.727 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1952, allocations: 0 / 0.5685 GB, free: 6.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003602/0.1988, allocations: 1.453 MB / 0.5699 GB, free: 5.215 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.1989, allocations: 12.25 kB / 0.5699 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.1989, allocations: 8 kB / 0.5699 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.2006, allocations: 471 kB / 0.5704 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.201, allocations: 119.8 kB / 0.5705 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.2135, allocations: 9.226 MB / 0.5795 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006656/0.2142, allocations: 36.05 kB / 0.5796 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.833e-05/0.2142, allocations: 36 kB / 0.5796 GB, free: 10.74 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005759/0.2148, allocations: 306.2 kB / 0.5799 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.215, allocations: 67.58 kB / 0.5799 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003398/0.2183, allocations: 1.302 MB / 0.5812 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.2184, allocations: 11.98 kB / 0.5812 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.2184, allocations: 4 kB / 0.5812 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.2184, allocations: 7.938 kB / 0.5812 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005145/0.2235, allocations: 2.256 MB / 0.5834 GB, free: 6.609 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.949e-05/0.2236, allocations: 4 kB / 0.5834 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/0.224, allocations: 59.95 kB / 0.5835 GB, free: 6.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.2256, allocations: 451.1 kB / 0.5839 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.882e-05/0.2256, allocations: 19.88 kB / 0.5839 GB, free: 6.074 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2683/0.4939, allocations: 8.948 MB / 0.5927 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4939, allocations: 3 kB / 0.5927 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003532/0.4974, allocations: 1.859 MB / 0.5945 GB, free: 47.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.4978, allocations: 202.8 kB / 0.5947 GB, free: 47.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.247e-05/0.4979, allocations: 13.61 kB / 0.5947 GB, free: 47.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.4983, allocations: 18.75 kB / 0.5947 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.4985, allocations: 55.69 kB / 0.5948 GB, free: 47.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/0.4986, allocations: 16.67 kB / 0.5948 GB, free: 47.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004755/0.499, allocations: 377.9 kB / 0.5952 GB, free: 46.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.499, allocations: 3.906 kB / 0.5952 GB, free: 46.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009999/0.5, allocations: 247.4 kB / 0.5954 GB, free: 46.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003909/0.5039, allocations: 2.428 MB / 0.5978 GB, free: 45.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.5064, allocations: 1.333 MB / 0.5991 GB, free: 44.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5064, allocations: 0.7812 kB / 0.5991 GB, free: 44.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.5081, allocations: 0.9639 MB / 0.6 GB, free: 43.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009779/0.5091, allocations: 182.5 kB / 0.6002 GB, free: 43.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.5228, allocations: 7.682 MB / 0.6077 GB, free: 39.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/0.5234, allocations: 1.054 MB / 0.6087 GB, free: 38.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004363/0.5238, allocations: 107.1 kB / 0.6088 GB, free: 38.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.5241, allocations: 265.7 kB / 0.6091 GB, free: 38.53 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5241, allocations: 0 / 0.6091 GB, free: 38.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06938/0.5935, allocations: 21.64 MB / 0.6302 GB, free: 24.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.16, allocations: 0 / 0.6302 GB, free: 24.55 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.173304624971934] Failed to read output from testmodel.py, exit status != 0: 14.326895506004803 14.338081516 14.17212399 Calling exit ...