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.001027/0.001027, allocations: 113.6 kB / 16.42 MB, free: 6.473 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.001026/0.001026, allocations: 186.6 kB / 17.35 MB, free: 5.75 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.235/1.235, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01225/0.01225, allocations: 2.592 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 99.83 kB / 406 MB, free: 29.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06972/0.07142, allocations: 50.04 MB / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01422/0.08568, allocations: 14.13 MB / 470.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007675/0.09338, allocations: 4.972 MB / 475.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.095, allocations: 83.69 kB / 475.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.09742, allocations: 1.095 MB / 476.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002559/0.1, allocations: 1.2 MB / 477.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.1014, allocations: 0.7869 MB / 478.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002774/0.1042, allocations: 3.172 MB / 481.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002561/0.1068, allocations: 2.651 MB / 484.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.108, allocations: 1.382 MB / 485.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.1096, allocations: 1.611 MB / 487.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000375/0.11, allocations: 388 kB / 487.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008141/0.1108, allocations: 0.5818 MB / 488.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006697/0.1115, allocations: 0.8686 MB / 489 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.1128, allocations: 1.665 MB / 490.6 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003938/0.1168, allocations: 5.117 MB / 495.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1168, allocations: 0 / 495.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1168, allocations: 0 / 495.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.668e-05/0.1168, allocations: 0 / 495.7 MB, free: 3.523 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.006441/0.1233, allocations: 3.49 MB / 499.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1233, allocations: 8.031 kB / 499.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/0.1258, allocations: 0.5555 MB / 499.8 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002517/0.1283, allocations: 1.835 MB / 0.4899 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.1284, allocations: 189.5 kB / 0.4901 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003336/0.1288, allocations: 264 kB / 0.4903 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004703/0.1335, allocations: 3.277 MB / 0.4935 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.286e-05/0.1335, allocations: 7.906 kB / 0.4935 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.1338, allocations: 108 kB / 0.4936 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.1339, allocations: 121 kB / 0.4937 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00399/0.1379, allocations: 2.717 MB / 0.4964 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1702/0.3081, allocations: 10.82 MB / 0.507 GB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002903/0.311, allocations: 3.608 MB / 0.5105 GB, free: 43.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.3122, allocations: 0.808 MB / 0.5113 GB, free: 43.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003479/0.3157, allocations: 2.399 MB / 0.5136 GB, free: 42.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.3158, allocations: 44.64 kB / 0.5137 GB, free: 42.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.675e-06/0.3158, allocations: 3.719 kB / 0.5137 GB, free: 42.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.009035/0.3248, allocations: 4.684 MB / 0.5182 GB, free: 39.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.178e-05/0.3249, allocations: 63.91 kB / 0.5183 GB, free: 39.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/0.3268, allocations: 1.536 MB / 0.5198 GB, free: 39.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.703e-05/0.3269, allocations: 46.11 kB / 0.5198 GB, free: 39.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000577/0.3275, allocations: 1.244 MB / 0.521 GB, free: 38.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.3277, allocations: 344.4 kB / 0.5214 GB, free: 38.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003626/0.3281, allocations: 278 kB / 0.5216 GB, free: 37.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.244e-05/0.3281, allocations: 301.1 kB / 0.5219 GB, free: 37.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008/0.3289, allocations: 0.5961 MB / 0.5225 GB, free: 37.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009446/0.3299, allocations: 1.119 MB / 0.5236 GB, free: 36.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/0.3316, allocations: 1.831 MB / 0.5254 GB, free: 35.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.3316, allocations: 3.906 kB / 0.5254 GB, free: 35.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.002491/0.3341, allocations: 1.972 MB / 0.5273 GB, free: 34.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.3341, allocations: 14.5 kB / 0.5273 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.3341, allocations: 15.81 kB / 0.5274 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002274/0.3344, allocations: 91.91 kB / 0.5274 GB, free: 34.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.3356, allocations: 389 kB / 0.5278 GB, free: 34.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/0.3357, allocations: 41.33 kB / 0.5278 GB, free: 34.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000965/0.3366, allocations: 81.94 kB / 0.5279 GB, free: 34.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.591e-05/0.3367, allocations: 76.78 kB / 0.528 GB, free: 34.19 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.0008637/0.3376, allocations: 0.7825 MB / 0.5288 GB, free: 33.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.3378, allocations: 160.1 kB / 0.5289 GB, free: 33.64 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.001011/0.3388, allocations: 0.7189 MB / 0.5296 GB, free: 33.28 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