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.001071/0.001071, allocations: 111.1 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.001164/0.001164, 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.365/1.365, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.99 MB / 309.2 MB, free: 5.941 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.00255/0.00255, allocations: 71.91 kB / 431.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1319, allocations: 55.23 MB / 486.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008198/0.1402, allocations: 6.337 MB / 492.9 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003983/0.1442, allocations: 2.715 MB / 495.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004099/0.1446, allocations: 27.81 kB / 495.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.1458, allocations: 334.5 kB / 496 MB, free: 15.51 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.001254/0.1471, allocations: 0.587 MB / 496.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006122/0.1477, allocations: 283.5 kB / 496.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.1492, allocations: 1.196 MB / 498.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.1503, allocations: 0.8768 MB / 498.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007604/0.1511, allocations: 494.3 kB / 499.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007768/0.1519, allocations: 0.5372 MB / 500 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.152, allocations: 84 kB / 0.4883 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005417/0.1526, allocations: 327.6 kB / 0.4886 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003306/0.1529, allocations: 343.1 kB / 0.489 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004221/0.1533, allocations: 454 kB / 0.4894 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001349/0.1547, allocations: 1.379 MB / 0.4907 GB, free: 8.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1547, allocations: 0 / 0.4907 GB, free: 8.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1547, allocations: 0 / 0.4907 GB, free: 8.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1547, allocations: 0 / 0.4907 GB, free: 8.977 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.002174/0.1569, allocations: 1.141 MB / 0.4919 GB, free: 7.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.157, allocations: 15.89 kB / 0.4919 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.1571, allocations: 114.7 kB / 0.492 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005975/0.1577, allocations: 131.8 kB / 0.4921 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.159, allocations: 0.7058 MB / 0.4928 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.1591, allocations: 75.7 kB / 0.4929 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.1592, allocations: 68 kB / 0.4929 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.1607, allocations: 0.9608 MB / 0.4939 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.1607, allocations: 3.938 kB / 0.4939 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.989e-05/0.1608, allocations: 31.98 kB / 0.4939 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.293e-05/0.1609, allocations: 53.28 kB / 0.494 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.1621, allocations: 0.778 MB / 0.4947 GB, free: 4.75 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.004733/0.1669, allocations: 3.836 MB / 0.4985 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.1677, allocations: 0.5091 MB / 0.499 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/0.1682, allocations: 246.5 kB / 0.4992 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.1683, allocations: 8 kB / 0.4992 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.1683, allocations: 42.5 kB / 0.4992 GB, free: 15.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 1.783e-06/0.1683, allocations: 0 / 0.4992 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01057/0.1789, allocations: 3.751 MB / 0.5029 GB, free: 11.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.179, allocations: 111.2 kB / 0.503 GB, free: 11.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.1796, allocations: 0.5222 MB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.1797, allocations: 37.7 kB / 0.5036 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.1799, allocations: 399 kB / 0.5039 GB, free: 10.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.1801, allocations: 193.3 kB / 0.5041 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.1803, allocations: 126.6 kB / 0.5042 GB, free: 10.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1804, allocations: 366.8 kB / 0.5046 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/0.1809, allocations: 285.8 kB / 0.5049 GB, free: 9.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.1815, allocations: 0.5033 MB / 0.5054 GB, free: 9.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.1826, allocations: 0.8442 MB / 0.5062 GB, free: 8.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.1826, allocations: 8 kB / 0.5062 GB, free: 8.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003126/0.1857, allocations: 1.453 MB / 0.5076 GB, free: 6.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1858, allocations: 8 kB / 0.5076 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1858, allocations: 4 kB / 0.5076 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.1873, allocations: 455.2 kB / 0.5081 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.1877, allocations: 111.8 kB / 0.5082 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009889/0.1976, allocations: 9.142 MB / 0.5171 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.1982, allocations: 27.98 kB / 0.5171 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/0.1983, allocations: 35.98 kB / 0.5172 GB, free: 12.41 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.000409/0.1987, allocations: 301.5 kB / 0.5174 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1988, allocations: 67.23 kB / 0.5175 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/0.2018, allocations: 1.303 MB / 0.5188 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.2018, allocations: 11.94 kB / 0.5188 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.2018, allocations: 8 kB / 0.5188 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.2018, allocations: 3.984 kB / 0.5188 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004271/0.2061, allocations: 2.241 MB / 0.521 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.2061, allocations: 4 kB / 0.521 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.2065, allocations: 51.97 kB / 0.521 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.2079, allocations: 435.1 kB / 0.5215 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.2079, allocations: 16 kB / 0.5215 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2347/0.4426, allocations: 8.863 MB / 0.5301 GB, free: 48.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4426, allocations: 7.219 kB / 0.5301 GB, free: 48.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003657/0.4463, allocations: 1.841 MB / 0.5319 GB, free: 48.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.4467, allocations: 203.1 kB / 0.5321 GB, free: 48.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.4468, allocations: 12.8 kB / 0.5321 GB, free: 48.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.4471, allocations: 19.62 kB / 0.5322 GB, free: 48.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.4473, allocations: 60.5 kB / 0.5322 GB, free: 48.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.4474, allocations: 17.02 kB / 0.5322 GB, free: 48.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004663/0.4478, allocations: 371.8 kB / 0.5326 GB, free: 48.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4479, allocations: 0 / 0.5326 GB, free: 48.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001019/0.4489, allocations: 252.4 kB / 0.5328 GB, free: 48.23 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.003985/0.4529, allocations: 2.422 MB / 0.5352 GB, free: 47.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.4552, allocations: 1.348 MB / 0.5365 GB, free: 46.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4553, allocations: 0 / 0.5365 GB, free: 46.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.4565, allocations: 0.9673 MB / 0.5375 GB, free: 45.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009587/0.4574, allocations: 185.4 kB / 0.5376 GB, free: 45.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.4697, allocations: 7.635 MB / 0.5451 GB, free: 41.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006326/0.4704, allocations: 1.051 MB / 0.5461 GB, free: 40.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003767/0.4708, allocations: 111.1 kB / 0.5462 GB, free: 40.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.4711, allocations: 266.3 kB / 0.5465 GB, free: 40.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4711, allocations: 0 / 0.5465 GB, free: 40.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07074/0.5418, allocations: 22.01 MB / 0.568 GB, free: 26.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.76, allocations: 7.5 kB / 0.568 GB, free: 26.25 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)