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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.00187/0.00187, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.002027/0.002028, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1693/0.1693, allocations: 37.98 MB / 309.2 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 71.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008895/0.112, allocations: 6.329 MB / 492.9 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004249/0.1163, allocations: 2.723 MB / 495.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005459/0.1169, allocations: 23.88 kB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1181, allocations: 338 kB / 496 MB, free: 15.39 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001562/0.1197, allocations: 0.587 MB / 496.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007328/0.1205, allocations: 291.5 kB / 496.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001847/0.1223, allocations: 1.188 MB / 498.1 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.1236, allocations: 0.8845 MB / 499 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008708/0.1245, allocations: 490.3 kB / 499.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009512/0.1255, allocations: 0.5333 MB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.1257, allocations: 84 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006438/0.1263, allocations: 327.5 kB / 0.4886 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.1267, allocations: 339.2 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006028/0.1273, allocations: 457.9 kB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.1288, allocations: 1.379 MB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1288, allocations: 0 / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1288, allocations: 0 / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.492e-05/0.1289, allocations: 0 / 0.4907 GB, free: 8.859 MB / 382.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.002392/0.1313, allocations: 1.145 MB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1313, allocations: 11.89 kB / 0.4919 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001696/0.1315, allocations: 118.7 kB / 0.492 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000613/0.1321, allocations: 131.8 kB / 0.4921 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.1333, allocations: 0.6941 MB / 0.4928 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1334, allocations: 91.67 kB / 0.4929 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1335, allocations: 60 kB / 0.4929 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1349, allocations: 0.9608 MB / 0.4939 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.1349, allocations: 3.938 kB / 0.4939 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.135, allocations: 28 kB / 0.4939 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.156e-05/0.1351, allocations: 53.28 kB / 0.494 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1364, allocations: 0.7818 MB / 0.4947 GB, free: 4.633 MB / 382.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.004685/0.1411, allocations: 3.836 MB / 0.4985 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.1419, allocations: 0.5207 MB / 0.499 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004185/0.1423, allocations: 234.5 kB / 0.4992 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.1423, allocations: 8 kB / 0.4992 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.1424, allocations: 46.48 kB / 0.4993 GB, free: 15.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.1424, allocations: 3.938 kB / 0.4993 GB, free: 15.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01069/0.1531, allocations: 3.747 MB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.1532, allocations: 115.2 kB / 0.503 GB, free: 11.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006858/0.1539, allocations: 0.5183 MB / 0.5035 GB, free: 11.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.032e-05/0.1539, allocations: 37.7 kB / 0.5036 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.1542, allocations: 395 kB / 0.5039 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.1544, allocations: 193.3 kB / 0.5041 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.1546, allocations: 126.6 kB / 0.5042 GB, free: 10.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1548, allocations: 374.8 kB / 0.5046 GB, free: 10 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.1553, allocations: 285.8 kB / 0.5049 GB, free: 9.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006436/0.1559, allocations: 0.4995 MB / 0.5054 GB, free: 9.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.1571, allocations: 0.848 MB / 0.5062 GB, free: 8.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.1571, allocations: 8 kB / 0.5062 GB, free: 8.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003317/0.1604, allocations: 1.449 MB / 0.5076 GB, free: 6.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1605, allocations: 8 kB / 0.5076 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.1605, allocations: 8 kB / 0.5076 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.1621, allocations: 447.1 kB / 0.5081 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.1625, allocations: 119.8 kB / 0.5082 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.1731, allocations: 9.131 MB / 0.5171 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005644/0.1737, allocations: 31.98 kB / 0.5171 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.1738, allocations: 28.14 kB / 0.5171 GB, free: 12.3 MB / 414.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.0004913/0.1743, allocations: 313.5 kB / 0.5174 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1744, allocations: 59.25 kB / 0.5175 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.1775, allocations: 1.295 MB / 0.5188 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.1775, allocations: 16.05 kB / 0.5188 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.1775, allocations: 7.938 kB / 0.5188 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1776, allocations: 3.984 kB / 0.5188 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/0.1819, allocations: 2.241 MB / 0.521 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.182, allocations: 4 kB / 0.521 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.1823, allocations: 63.89 kB / 0.521 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.1836, allocations: 431.2 kB / 0.5215 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.1837, allocations: 12 kB / 0.5215 GB, free: 7.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2205/0.4042, allocations: 8.869 MB / 0.5301 GB, free: 48.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.4042, allocations: 5.188 kB / 0.5301 GB, free: 48.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.4076, allocations: 1.842 MB / 0.5319 GB, free: 48.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.4079, allocations: 200.6 kB / 0.5321 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.472e-05/0.408, allocations: 16.69 kB / 0.5321 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000385/0.4084, allocations: 19.31 kB / 0.5322 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.4086, allocations: 58.06 kB / 0.5322 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.4086, allocations: 17.45 kB / 0.5322 GB, free: 48.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004171/0.409, allocations: 376.5 kB / 0.5326 GB, free: 48.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.409, allocations: 1.25 kB / 0.5326 GB, free: 48.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009054/0.41, allocations: 250 kB / 0.5328 GB, free: 48.2 MB / 414.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.003566/0.4135, allocations: 2.419 MB / 0.5352 GB, free: 47.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.4155, allocations: 1.349 MB / 0.5365 GB, free: 46.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4155, allocations: 1.375 kB / 0.5365 GB, free: 46.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.4166, allocations: 0.9688 MB / 0.5375 GB, free: 45.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000908/0.4175, allocations: 177.1 kB / 0.5376 GB, free: 45.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.4296, allocations: 7.638 MB / 0.5451 GB, free: 41.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005877/0.4302, allocations: 1.05 MB / 0.5461 GB, free: 40.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.4306, allocations: 110.4 kB / 0.5462 GB, free: 40.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.4309, allocations: 264.6 kB / 0.5465 GB, free: 40.31 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.431, allocations: 1.062 kB / 0.5465 GB, free: 40.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.048/0.479, allocations: 22.01 MB / 0.568 GB, free: 26.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.57, allocations: 7.516 kB / 0.568 GB, free: 26.18 MB / 414.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)