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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 123.9 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 185.2 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1772/0.1772, allocations: 38.5 MB / 342.5 MB, free: 8.074 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.42 kB / 478.6 MB, free: 33.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1175, allocations: 61.24 MB / 0.5272 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009489/0.127, allocations: 6.394 MB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.1314, allocations: 2.684 MB / 0.5361 GB, free: 8.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003658/0.1318, allocations: 27.81 kB / 0.5361 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.1328, allocations: 342 kB / 0.5364 GB, free: 7.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.1341, allocations: 0.5948 MB / 0.537 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006369/0.1348, allocations: 283.5 kB / 0.5373 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.1362, allocations: 1.2 MB / 0.5385 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009723/0.1372, allocations: 0.7636 MB / 0.5392 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006714/0.1379, allocations: 498.3 kB / 0.5397 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007885/0.1386, allocations: 0.5566 MB / 0.5402 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.1388, allocations: 88 kB / 0.5403 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005875/0.1394, allocations: 351.5 kB / 0.5406 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003527/0.1397, allocations: 343 kB / 0.541 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004979/0.1402, allocations: 454 kB / 0.5414 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.1419, allocations: 1.374 MB / 0.5427 GB, free: 1.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1419, allocations: 3.938 kB / 0.5427 GB, free: 1.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1419, allocations: 0 / 0.5427 GB, free: 1.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.1419, allocations: 4 kB / 0.5427 GB, free: 1.43 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002315/0.1442, allocations: 1.163 MB / 0.5439 GB, free: 220 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1443, allocations: 15.89 kB / 0.5439 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.1444, allocations: 118.7 kB / 0.544 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006545/0.1451, allocations: 140.3 kB / 0.5441 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.1464, allocations: 0.6984 MB / 0.5448 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.1466, allocations: 87.67 kB / 0.5449 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.1467, allocations: 64 kB / 0.545 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1483, allocations: 0.953 MB / 0.5459 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.107e-05/0.1483, allocations: 7.938 kB / 0.5459 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.142e-05/0.1484, allocations: 28 kB / 0.5459 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.1485, allocations: 57.28 kB / 0.546 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.1499, allocations: 0.7741 MB / 0.5467 GB, free: 13.18 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.00557/0.1555, allocations: 3.849 MB / 0.5505 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/0.1564, allocations: 0.4933 MB / 0.551 GB, free: 8.566 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.1568, allocations: 222.5 kB / 0.5512 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1568, allocations: 7.984 kB / 0.5512 GB, free: 8.332 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.1569, allocations: 50.55 kB / 0.5513 GB, free: 8.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.385e-06/0.1569, allocations: 0 / 0.5513 GB, free: 8.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01129/0.1682, allocations: 3.76 MB / 0.5549 GB, free: 4.352 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.1683, allocations: 111.3 kB / 0.555 GB, free: 4.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007424/0.169, allocations: 0.53 MB / 0.5555 GB, free: 3.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.1691, allocations: 33.7 kB / 0.5556 GB, free: 3.645 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.1694, allocations: 408 kB / 0.556 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.1696, allocations: 198.3 kB / 0.5562 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.1698, allocations: 126.6 kB / 0.5563 GB, free: 2.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.17, allocations: 374.8 kB / 0.5566 GB, free: 2.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000491/0.1705, allocations: 281.8 kB / 0.5569 GB, free: 2.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006748/0.1711, allocations: 0.4994 MB / 0.5574 GB, free: 1.656 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.1725, allocations: 0.852 MB / 0.5582 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1725, allocations: 4 kB / 0.5582 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003438/0.1759, allocations: 1.441 MB / 0.5596 GB, free: 15.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.1759, allocations: 12.25 kB / 0.5596 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.176, allocations: 8 kB / 0.5597 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/0.1776, allocations: 451.1 kB / 0.5601 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.1781, allocations: 119.8 kB / 0.5602 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.1907, allocations: 9.139 MB / 0.5691 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008418/0.1915, allocations: 28.05 kB / 0.5692 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.805e-05/0.1916, allocations: 32.14 kB / 0.5692 GB, free: 4.84 MB / 430.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%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004956/0.1921, allocations: 313.5 kB / 0.5695 GB, free: 4.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.1922, allocations: 67.58 kB / 0.5695 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.1955, allocations: 1.283 MB / 0.5708 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.1955, allocations: 4 kB / 0.5708 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1955, allocations: 4 kB / 0.5708 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.1955, allocations: 7.984 kB / 0.5708 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004944/0.2004, allocations: 2.237 MB / 0.573 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2004, allocations: 3.938 kB / 0.573 GB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.2008, allocations: 63.95 kB / 0.5731 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/0.2023, allocations: 431.1 kB / 0.5735 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.2023, allocations: 16 kB / 0.5735 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.2135, allocations: 8.873 MB / 0.5822 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2135, allocations: 0 / 0.5822 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003908/0.2174, allocations: 1.837 MB / 0.5839 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004073/0.2178, allocations: 200.6 kB / 0.5841 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.2179, allocations: 15.98 kB / 0.5842 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004032/0.2183, allocations: 19.98 kB / 0.5842 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.2185, allocations: 64.42 kB / 0.5842 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.2186, allocations: 16 kB / 0.5843 GB, free: 4.566 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006749/0.2193, allocations: 378.8 kB / 0.5846 GB, free: 4.199 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2193, allocations: 0 / 0.5846 GB, free: 4.199 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001649/0.2209, allocations: 247.9 kB / 0.5848 GB, free: 3.957 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 {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006678/0.2276, allocations: 2.408 MB / 0.5872 GB, free: 1.453 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.2313, allocations: 1.307 MB / 0.5885 GB, free: 96 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.2313, allocations: 0 / 0.5885 GB, free: 96 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.2336, allocations: 0.9354 MB / 0.5894 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.2353, allocations: 188.4 kB / 0.5896 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/0.2552, allocations: 7.646 MB / 0.597 GB, free: 6.871 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009873/0.2562, allocations: 1.048 MB / 0.5981 GB, free: 5.797 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000473/0.2566, allocations: 113.7 kB / 0.5982 GB, free: 5.684 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.2571, allocations: 275.3 kB / 0.5984 GB, free: 5.414 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/0.2571, allocations: 0 / 0.5984 GB, free: 5.414 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3346/0.5917, allocations: 21.71 MB / 0.6196 GB, free: 89.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.76, allocations: 6.188 kB / 0.6196 GB, free: 89.62 MB / 478.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: 16.71869438700378] Failed to read output from testmodel.py, exit status != 0: 13.872682969085872 13.896862624 13.750378963 Calling exit ...