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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.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_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1751/0.1751, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 68.39 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09937, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008432/0.1078, allocations: 6.329 MB / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003918/0.1118, allocations: 2.668 MB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004407/0.1123, allocations: 27.81 kB / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.1133, allocations: 338 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1146, allocations: 0.5909 MB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.1154, allocations: 283.5 kB / 467.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.1168, allocations: 1.192 MB / 468.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.118, allocations: 0.8728 MB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006597/0.1186, allocations: 486.4 kB / 469.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006854/0.1193, allocations: 0.5294 MB / 470.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.1195, allocations: 92 kB / 470.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005388/0.12, allocations: 323.5 kB / 470.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.1203, allocations: 339.1 kB / 471 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004916/0.1208, allocations: 458 kB / 471.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.1224, allocations: 1.363 MB / 472.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1224, allocations: 0 / 472.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1224, allocations: 0 / 472.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.1224, allocations: 0 / 472.8 MB, free: 8.051 MB / 350.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.002236/0.1247, allocations: 1.145 MB / 473.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1247, allocations: 15.89 kB / 474 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.1249, allocations: 126.7 kB / 474.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006009/0.1255, allocations: 123.9 kB / 474.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.1265, allocations: 0.6707 MB / 474.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.624e-05/0.1266, allocations: 75.7 kB / 475 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1267, allocations: 67.98 kB / 475 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.1281, allocations: 0.957 MB / 476 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.1282, allocations: 4 kB / 476 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.037e-05/0.1282, allocations: 31.98 kB / 476 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.1283, allocations: 53.3 kB / 476.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.1296, allocations: 0.7857 MB / 476.8 MB, free: 3.852 MB / 350.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.004985/0.1346, allocations: 3.86 MB / 480.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/0.1354, allocations: 0.5214 MB / 481.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000417/0.1358, allocations: 234.5 kB / 481.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.1359, allocations: 15.92 kB / 481.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.1359, allocations: 38.55 kB / 481.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.134e-06/0.1359, allocations: 0 / 481.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01056/0.1465, allocations: 3.754 MB / 485.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.1466, allocations: 111.2 kB / 485.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006512/0.1473, allocations: 0.5222 MB / 485.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.1473, allocations: 33.7 kB / 485.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.1476, allocations: 399 kB / 486.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1477, allocations: 193.2 kB / 486.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/0.1479, allocations: 130.6 kB / 486.6 MB, free: 9.566 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1481, allocations: 370.8 kB / 487 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.1485, allocations: 281.8 kB / 487.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.1492, allocations: 0.5033 MB / 487.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.1503, allocations: 0.8598 MB / 488.6 MB, free: 7.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1503, allocations: 0 / 488.6 MB, free: 7.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003125/0.1535, allocations: 1.441 MB / 490.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1535, allocations: 11.94 kB / 490.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.1535, allocations: 8 kB / 490.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/0.155, allocations: 467.2 kB / 490.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.1555, allocations: 115.8 kB / 490.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.1657, allocations: 9.131 MB / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.1663, allocations: 31.98 kB / 499.8 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.1663, allocations: 28 kB / 499.9 MB, free: 11.48 MB / 382.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.000434/0.1668, allocations: 313.6 kB / 0.4884 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.1669, allocations: 59.25 kB / 0.4885 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003007/0.1699, allocations: 1.299 MB / 0.4898 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.17, allocations: 11.98 kB / 0.4898 GB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.487e-05/0.17, allocations: 4 kB / 0.4898 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.17, allocations: 0 / 0.4898 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004235/0.1743, allocations: 2.256 MB / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1743, allocations: 4 kB / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.1746, allocations: 59.89 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.176, allocations: 443.1 kB / 0.4925 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.176, allocations: 12 kB / 0.4925 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009989/0.186, allocations: 8.863 MB / 0.5011 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.186, allocations: 0 / 0.5011 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.1897, allocations: 1.836 MB / 0.5029 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.19, allocations: 208.2 kB / 0.5031 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.1902, allocations: 16.06 kB / 0.5031 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.1906, allocations: 19.98 kB / 0.5032 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.1908, allocations: 56.42 kB / 0.5032 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.1908, allocations: 19.94 kB / 0.5032 GB, free: 11.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000484/0.1913, allocations: 378.8 kB / 0.5036 GB, free: 10.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1913, allocations: 3.938 kB / 0.5036 GB, free: 10.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001061/0.1924, allocations: 252 kB / 0.5038 GB, free: 10.55 MB / 398.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.004139/0.1965, allocations: 2.423 MB / 0.5062 GB, free: 8.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.199, allocations: 1.413 MB / 0.5076 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.199, allocations: 0 / 0.5076 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.2005, allocations: 0.9704 MB / 0.5085 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.2015, allocations: 176 kB / 0.5087 GB, free: 5.383 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1785/0.38, allocations: 7.757 MB / 0.5163 GB, free: 67.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006914/0.3808, allocations: 1.05 MB / 0.5173 GB, free: 67.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004547/0.3812, allocations: 110.3 kB / 0.5174 GB, free: 67.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.3815, allocations: 262.3 kB / 0.5177 GB, free: 67.21 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3815, allocations: 0 / 0.5177 GB, free: 67.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07389/0.4554, allocations: 21.3 MB / 0.5385 GB, free: 60.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.58, allocations: 11.86 kB / 0.5385 GB, free: 60.06 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)