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.0009306/0.0009306, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.00114/0.00114, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.512/1.512, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1594/0.1594, allocations: 2.564 MB / 294 MB, free: 4.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004405, allocations: 15.98 kB / 355.8 MB, free: 4.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.158, allocations: 51 MB / 406.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.02203/0.1802, allocations: 13.3 MB / 420.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3204/0.5007, allocations: 4.846 MB / 424.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003143/0.5039, allocations: 83.53 kB / 425 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003558/0.5075, allocations: 0.9264 MB / 425.9 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.5114, allocations: 1.044 MB / 427 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.5131, allocations: 0.7069 MB / 427.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004167/0.5172, allocations: 3.225 MB / 430.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002662/0.5199, allocations: 2.192 MB / 433.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.5218, allocations: 1.033 MB / 434.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.5233, allocations: 1.321 MB / 435.4 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.5236, allocations: 161.8 kB / 435.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.5246, allocations: 372.4 kB / 436 MB, free: 34.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005071/0.5251, allocations: 0.6035 MB / 436.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00142/0.5266, allocations: 1.388 MB / 438 MB, free: 33.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004596/0.5312, allocations: 4.805 MB / 442.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.5312, allocations: 0.75 kB / 442.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.5312, allocations: 0 / 442.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.5313, allocations: 3.938 kB / 442.8 MB, free: 32.33 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: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.007777/0.5391, allocations: 2.968 MB / 445.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.5392, allocations: 9.656 kB / 445.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002623/0.5418, allocations: 0.5539 MB / 446.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.5448, allocations: 1.788 MB / 448.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.545, allocations: 191.1 kB / 448.3 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000368/0.5453, allocations: 263.4 kB / 448.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005705/0.5511, allocations: 3.278 MB / 451.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.485e-05/0.5511, allocations: 11.28 kB / 451.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.5514, allocations: 103.8 kB / 451.9 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.5515, allocations: 120.3 kB / 452 MB, free: 27.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004359/0.5558, allocations: 2.719 MB / 454.8 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01654/0.5724, allocations: 11 MB / 465.8 MB, free: 20.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003431/0.5759, allocations: 3.6 MB / 469.4 MB, free: 16.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.5775, allocations: 0.832 MB / 470.2 MB, free: 16.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0045/0.582, allocations: 2.415 MB / 472.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/0.5821, allocations: 43.34 kB / 472.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 4.328e-06/0.5821, allocations: 0 / 472.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01248/0.5946, allocations: 5.303 MB / 477.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008109/0.6027, allocations: 5.017 MB / 483 MB, free: 9.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004455/0.6072, allocations: 1.523 MB / 484.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002118/0.6075, allocations: 49.89 kB / 484.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.6086, allocations: 1.241 MB / 485.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005135/0.6092, allocations: 412.5 kB / 486.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002857/0.6095, allocations: 126.2 kB / 486.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.675e-05/0.6096, allocations: 306.8 kB / 486.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.6107, allocations: 0.6129 MB / 487.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.6123, allocations: 1.136 MB / 488.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002862/0.6152, allocations: 1.891 MB / 490.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-05/0.6152, allocations: 4.875 kB / 490.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003928/0.6192, allocations: 2.017 MB / 492.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.6192, allocations: 15.56 kB / 492.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/0.6193, allocations: 18.28 kB / 492.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.6196, allocations: 93.67 kB / 492.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.6209, allocations: 393.2 kB / 492.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.892e-05/0.6209, allocations: 40.77 kB / 492.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.6222, allocations: 87.59 kB / 492.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.6223, allocations: 71.83 kB / 493 MB, free: 3.145 MB / 350.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 (193): * Single equations (assignments): 191 * 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.001806/0.6241, allocations: 0.8098 MB / 493.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002804/0.6244, allocations: 165 kB / 493.9 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003245/0.6277, allocations: 1.831 MB / 495.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.6277, allocations: 12 kB / 495.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6277, allocations: 0 / 495.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.6277, allocations: 7.969 kB / 495.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.6379, allocations: 5.628 MB / 0.4897 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.6379, allocations: 0 / 0.4897 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007894/0.6387, allocations: 183.7 kB / 0.4898 GB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.64, allocations: 405.5 kB / 0.4902 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.6401, allocations: 24 kB / 0.4902 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007161/0.6473, allocations: 4.762 MB / 0.4949 GB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007071/0.6544, allocations: 4.912 MB / 0.4997 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005613/0.66, allocations: 2.761 MB / 0.5024 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.6615, allocations: 386.9 kB / 0.5028 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007291/0.6623, allocations: 32.02 kB / 0.5028 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/0.6638, allocations: 64 kB / 0.5029 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003807/0.6642, allocations: 104.7 kB / 0.503 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.854e-05/0.6643, allocations: 32 kB / 0.503 GB, free: 13.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002591/0.6669, allocations: 1.035 MB / 0.504 GB, free: 12.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6669, allocations: 4 kB / 0.504 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002918/0.6699, allocations: 0.5039 MB / 0.5045 GB, free: 12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004179/0.6703, allocations: 141.8 kB / 0.5046 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003154/0.6735, allocations: 1.718 MB / 0.5063 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.6735, allocations: 0 / 0.5063 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.6756, allocations: 1.117 MB / 0.5074 GB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003739/0.6793, allocations: 451.3 kB / 0.5078 GB, free: 8.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.6913, allocations: 5.904 MB / 0.5136 GB, free: 2.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002637/0.6939, allocations: 1.964 MB / 0.5155 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001918/0.6959, allocations: 374.9 kB / 0.5159 GB, free: 156 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006311/0.6965, allocations: 127.4 kB / 0.516 GB, free: 28 kB / 382.1 MB Notification: Performance of SimCode: time 1.532e-06/0.6966, allocations: 0 / 0.516 GB, free: 28 kB / 382.1 MB Notification: Performance of Templates: time 0.05363/0.7502, allocations: 25.04 MB / 0.5404 GB, free: 7.223 MB / 414.1 MB make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile Environment - environmentSimulation: (rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & ./BLDC_BLDC.Examples.SMPM_NominalOperation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) Environment - environmentSimulation: