Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.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: translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001208/0.001208, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01368/0.01368, allocations: 2.607 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 95.84 kB / 406 MB, free: 29.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1182, allocations: 50.04 MB / 456.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01689/0.1351, allocations: 14.13 MB / 470.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.1469, allocations: 4.976 MB / 475.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003329/0.1503, allocations: 87.62 kB / 475.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003847/0.1541, allocations: 1.095 MB / 476.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004614/0.1588, allocations: 1.196 MB / 477.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.1612, allocations: 0.7888 MB / 478.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006172/0.1674, allocations: 3.176 MB / 481.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004412/0.1718, allocations: 2.644 MB / 484.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.1741, allocations: 1.378 MB / 485.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003164/0.1773, allocations: 1.615 MB / 487.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.1784, allocations: 388 kB / 487.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002133/0.1806, allocations: 0.5818 MB / 488.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.1819, allocations: 0.8647 MB / 489 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003501/0.1855, allocations: 1.665 MB / 490.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.1956, allocations: 5.142 MB / 495.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1956, allocations: 0 / 495.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1956, allocations: 0 / 495.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000216/0.1959, allocations: 0 / 495.8 MB, free: 3.535 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.0162/0.2121, allocations: 3.56 MB / 499.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.086e-05/0.2122, allocations: 12.03 kB / 499.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004791/0.217, allocations: 0.5572 MB / 499.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006518/0.2235, allocations: 1.856 MB / 0.49 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/0.2238, allocations: 189.5 kB / 0.4902 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.2251, allocations: 268 kB / 0.4904 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/0.2367, allocations: 3.273 MB / 0.4936 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/0.2369, allocations: 11.94 kB / 0.4936 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006912/0.2376, allocations: 104 kB / 0.4937 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002045/0.2378, allocations: 117 kB / 0.4938 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008075/0.2459, allocations: 2.717 MB / 0.4965 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2564/0.5024, allocations: 10.86 MB / 0.5071 GB, free: 45.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003326/0.5057, allocations: 3.612 MB / 0.5106 GB, free: 43.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.5072, allocations: 0.8101 MB / 0.5114 GB, free: 43.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00487/0.5121, allocations: 2.402 MB / 0.5138 GB, free: 42.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.5121, allocations: 40.36 kB / 0.5138 GB, free: 41.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.256e-06/0.5121, allocations: 3.719 kB / 0.5138 GB, free: 41.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.01159/0.5237, allocations: 4.723 MB / 0.5184 GB, free: 39.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.5238, allocations: 64.47 kB / 0.5185 GB, free: 39.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002896/0.5267, allocations: 1.532 MB / 0.52 GB, free: 39.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.039e-05/0.5268, allocations: 46.08 kB / 0.52 GB, free: 39.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008712/0.5277, allocations: 1.279 MB / 0.5213 GB, free: 38.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.5279, allocations: 367.1 kB / 0.5216 GB, free: 38.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004297/0.5284, allocations: 279.3 kB / 0.5219 GB, free: 38.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.5284, allocations: 302.5 kB / 0.5222 GB, free: 37.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008852/0.5293, allocations: 0.5911 MB / 0.5228 GB, free: 37.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.5305, allocations: 1.122 MB / 0.5238 GB, free: 36.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.5323, allocations: 1.832 MB / 0.5256 GB, free: 35.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.5324, allocations: 3.969 kB / 0.5256 GB, free: 35.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.002861/0.5352, allocations: 1.98 MB / 0.5276 GB, free: 34.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.5353, allocations: 19.67 kB / 0.5276 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.5353, allocations: 15.75 kB / 0.5276 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.5355, allocations: 91.16 kB / 0.5277 GB, free: 34.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.5369, allocations: 383.8 kB / 0.5281 GB, free: 34.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.72e-05/0.5369, allocations: 31.19 kB / 0.5281 GB, free: 34.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.5382, allocations: 93.95 kB / 0.5282 GB, free: 34.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.5383, allocations: 75.84 kB / 0.5283 GB, free: 34.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001537/0.5399, allocations: 0.7813 MB / 0.529 GB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003471/0.5402, allocations: 165.4 kB / 0.5292 GB, free: 33.77 MB / 382.1 MB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 116 equation(s) and 84 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.5415, allocations: 0.7263 MB / 0.5299 GB, free: 33.39 MB / 382.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model BLDC.Examples.SMPM_NominalOperation could not be translated