Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.0013/0.0013, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001573/0.001573, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.501/1.501, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1846/0.1846, allocations: 38.5 MB / 349.4 MB, free: 2.586 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_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.001973/0.001973, allocations: 63.91 kB / 487.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1125, allocations: 62.42 MB / 0.5374 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009902/0.1224, allocations: 6.404 MB / 0.5436 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005315/0.1278, allocations: 2.727 MB / 0.5463 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007229/0.1285, allocations: 35.69 kB / 0.5463 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.1298, allocations: 342 kB / 0.5466 GB, free: 14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001527/0.1313, allocations: 0.5909 MB / 0.5472 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.1322, allocations: 287.5 kB / 0.5475 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.1338, allocations: 1.207 MB / 0.5487 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009784/0.1348, allocations: 0.7674 MB / 0.5494 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007952/0.1356, allocations: 0.4982 MB / 0.5499 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008847/0.1365, allocations: 0.5567 MB / 0.5504 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.1366, allocations: 88 kB / 0.5505 GB, free: 9.992 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006151/0.1373, allocations: 347.5 kB / 0.5509 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003657/0.1376, allocations: 347.1 kB / 0.5512 GB, free: 9.312 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005036/0.1381, allocations: 457.9 kB / 0.5516 GB, free: 8.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.14, allocations: 1.378 MB / 0.553 GB, free: 7.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.129e-05/0.14, allocations: 4 kB / 0.553 GB, free: 7.477 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.14, allocations: 0 / 0.553 GB, free: 7.477 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.14, allocations: 0 / 0.553 GB, free: 7.477 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.00259/0.1426, allocations: 1.171 MB / 0.5541 GB, free: 6.254 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1427, allocations: 12.03 kB / 0.5541 GB, free: 6.242 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.154e-05/0.1427, allocations: 18.19 kB / 0.5541 GB, free: 6.223 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001468/0.1428, allocations: 118.7 kB / 0.5543 GB, free: 6.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000726/0.1436, allocations: 140.3 kB / 0.5544 GB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.1449, allocations: 0.6983 MB / 0.5551 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.1451, allocations: 87.62 kB / 0.5552 GB, free: 5.129 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1452, allocations: 64 kB / 0.5552 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.1469, allocations: 0.953 MB / 0.5562 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/0.1469, allocations: 3.953 kB / 0.5562 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.819e-05/0.147, allocations: 31.98 kB / 0.5562 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.1471, allocations: 57.28 kB / 0.5562 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.1486, allocations: 0.7896 MB / 0.557 GB, free: 3.191 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.0059/0.1545, allocations: 3.845 MB / 0.5608 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009823/0.1555, allocations: 493.2 kB / 0.5612 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005136/0.156, allocations: 227.1 kB / 0.5615 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.1561, allocations: 15.84 kB / 0.5615 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.1561, allocations: 38.5 kB / 0.5615 GB, free: 14.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.645e-06/0.1561, allocations: 0 / 0.5615 GB, free: 14.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.01164/0.1677, allocations: 3.778 MB / 0.5652 GB, free: 10.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.407e-05/0.1678, allocations: 115.2 kB / 0.5653 GB, free: 10.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007337/0.1685, allocations: 0.5261 MB / 0.5658 GB, free: 9.695 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.183e-05/0.1686, allocations: 33.7 kB / 0.5659 GB, free: 9.656 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.1689, allocations: 404.1 kB / 0.5662 GB, free: 9.258 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.1691, allocations: 202.3 kB / 0.5664 GB, free: 9.059 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.1694, allocations: 134.6 kB / 0.5666 GB, free: 8.918 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1696, allocations: 370.8 kB / 0.5669 GB, free: 8.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005304/0.1701, allocations: 281.8 kB / 0.5672 GB, free: 8.273 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007002/0.1708, allocations: 0.5072 MB / 0.5677 GB, free: 7.664 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.1721, allocations: 0.852 MB / 0.5685 GB, free: 6.711 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1721, allocations: 3.938 kB / 0.5685 GB, free: 6.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003726/0.1759, allocations: 1.461 MB / 0.5699 GB, free: 5.188 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.1759, allocations: 8 kB / 0.5699 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.1759, allocations: 8 kB / 0.57 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00176/0.1777, allocations: 467.2 kB / 0.5704 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.1781, allocations: 115.8 kB / 0.5705 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.1903, allocations: 9.234 MB / 0.5795 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/0.191, allocations: 24 kB / 0.5796 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-05/0.191, allocations: 35.98 kB / 0.5796 GB, free: 10.73 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.0005145/0.1915, allocations: 310.2 kB / 0.5799 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.1917, allocations: 67.64 kB / 0.5799 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003357/0.1951, allocations: 1.306 MB / 0.5812 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1951, allocations: 4 kB / 0.5812 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.1951, allocations: 4 kB / 0.5812 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/0.1951, allocations: 7.922 kB / 0.5812 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004855/0.1999, allocations: 2.26 MB / 0.5834 GB, free: 6.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.2, allocations: 4.094 kB / 0.5834 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.2003, allocations: 59.95 kB / 0.5835 GB, free: 6.527 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001597/0.2019, allocations: 447 kB / 0.5839 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.202, allocations: 19.92 kB / 0.584 GB, free: 6.059 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2369/0.4389, allocations: 8.955 MB / 0.5927 GB, free: 47.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.4389, allocations: 0 / 0.5927 GB, free: 47.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00368/0.4426, allocations: 1.855 MB / 0.5945 GB, free: 46.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.4429, allocations: 200.9 kB / 0.5947 GB, free: 46.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.542e-05/0.443, allocations: 12.58 kB / 0.5947 GB, free: 46.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.4434, allocations: 24 kB / 0.5947 GB, free: 46.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4436, allocations: 60.28 kB / 0.5948 GB, free: 46.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.4437, allocations: 17.11 kB / 0.5948 GB, free: 46.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004744/0.4441, allocations: 369 kB / 0.5952 GB, free: 46.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4441, allocations: 0 / 0.5952 GB, free: 46.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001031/0.4452, allocations: 253.2 kB / 0.5954 GB, free: 46.67 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.004037/0.4492, allocations: 2.428 MB / 0.5978 GB, free: 45.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.4518, allocations: 1.332 MB / 0.5991 GB, free: 44.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4518, allocations: 0.7188 kB / 0.5991 GB, free: 44.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.4534, allocations: 0.9629 MB / 0.6 GB, free: 43.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4544, allocations: 179.9 kB / 0.6002 GB, free: 43.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.4678, allocations: 7.696 MB / 0.6077 GB, free: 39.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.4686, allocations: 1.054 MB / 0.6087 GB, free: 38.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000464/0.469, allocations: 114.8 kB / 0.6088 GB, free: 38.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003216/0.4694, allocations: 265.4 kB / 0.6091 GB, free: 38.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4694, allocations: 0 / 0.6091 GB, free: 38.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05111/0.5205, allocations: 21.62 MB / 0.6302 GB, free: 24.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.18, allocations: 11.19 kB / 0.6302 GB, free: 24.34 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.145636942994315] Failed to read output from testmodel.py, exit status != 0: 14.345929884002544 14.361453971 14.219214827 Calling exit ...