Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02303/0.02303, allocations: 2.544 MB / 10.02 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001502, allocations: 188.8 kB / 11.18 MB, free: 1.465 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 233.7 MB, free: 4.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008519/0.0008519, allocations: 98.83 kB / 285.2 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.474e-05/1.478e-05, allocations: 3.984 kB / 342.4 MB, free: 6.133 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 51.01 MB / 393.4 MB, free: 3.078 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3288/0.4344, allocations: 81.67 MB / 475.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4347, allocations: 67.97 kB / 475.2 MB, free: 7.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04826/0.4829, allocations: 16.11 MB / 491.3 MB, free: 6.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.483, allocations: 3.938 kB / 491.3 MB, free: 6.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.792e-05/0.4831, allocations: 20 kB / 491.3 MB, free: 6.918 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.003073/0.4861, allocations: 1.053 MB / 492.3 MB, free: 5.816 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.4862, allocations: 15.95 kB / 492.4 MB, free: 5.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002646/0.4865, allocations: 79.06 kB / 492.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004952/0.4914, allocations: 1.865 MB / 494.3 MB, free: 3.816 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.4915, allocations: 20 kB / 494.3 MB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.767e-05/0.4916, allocations: 32.34 kB / 494.3 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008928/0.4925, allocations: 474.4 kB / 494.8 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009788/0.4935, allocations: 0.5854 MB / 495.4 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4935, allocations: 0 / 495.4 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.4936, allocations: 0 / 495.4 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.641e-05/0.4936, allocations: 33.3 kB / 495.4 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/0.4974, allocations: 2.098 MB / 497.5 MB, free: 468 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008018/0.4982, allocations: 443.8 kB / 498 MB, free: 8 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.4985, allocations: 198.2 kB / 498.2 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.4986, allocations: 174.3 kB / 498.3 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.4987, allocations: 38.78 kB / 498.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.4987, allocations: 0 / 498.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008035/0.4995, allocations: 399.8 kB / 498.8 MB, free: 15.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.4996, allocations: 89.03 kB / 498.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.5001, allocations: 461.9 kB / 499.3 MB, free: 14.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/0.5002, allocations: 25.7 kB / 499.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.5004, allocations: 351.7 kB / 499.7 MB, free: 14.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.5006, allocations: 130.2 kB / 499.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.5006, allocations: 112 / 499.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.5008, allocations: 378.7 kB / 0.4884 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.5011, allocations: 169.5 kB / 0.4886 GB, free: 13.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/0.5015, allocations: 371 kB / 0.489 GB, free: 13.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004671/0.5019, allocations: 212.4 kB / 0.4892 GB, free: 12.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.502, allocations: 4 kB / 0.4892 GB, free: 12.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001019/0.503, allocations: 0.5699 MB / 0.4897 GB, free: 12.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.503, allocations: 8 kB / 0.4897 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.503, allocations: 8 kB / 0.4897 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.5031, allocations: 8 kB / 0.4897 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.5035, allocations: 112.5 kB / 0.4898 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.5035, allocations: 15.88 kB / 0.4899 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.504, allocations: 63.48 kB / 0.4899 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.504, allocations: 31.98 kB / 0.49 GB, free: 12.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.5042, allocations: 139 kB / 0.4901 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.5043, allocations: 55.25 kB / 0.4901 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008491/0.5052, allocations: 491.5 kB / 0.4906 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.5052, allocations: 4 kB / 0.4906 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5052, allocations: 0 / 0.4906 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.5052, allocations: 4 kB / 0.4906 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.5071, allocations: 1.225 MB / 0.4918 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.5071, allocations: 4 kB / 0.4918 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.5074, allocations: 55.89 kB / 0.4919 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-05/0.5074, allocations: 7.953 kB / 0.4919 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.5075, allocations: 20.23 kB / 0.4919 GB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.5075, allocations: 8 kB / 0.4919 GB, free: 9.957 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5075, allocations: 0 / 0.4919 GB, free: 9.957 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.5086, allocations: 0.8679 MB / 0.4927 GB, free: 8.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/0.5088, allocations: 180.2 kB / 0.4929 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.648e-05/0.5089, allocations: 4 kB / 0.4929 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003938/0.5093, allocations: 19.97 kB / 0.4929 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.5095, allocations: 79.83 kB / 0.493 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.5095, allocations: 16 kB / 0.493 GB, free: 8.664 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004374/0.51, allocations: 358.9 kB / 0.4934 GB, free: 8.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.934e-06/0.51, allocations: 0 / 0.4934 GB, free: 8.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006307/0.5106, allocations: 127.6 kB / 0.4935 GB, free: 8.191 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002721/0.5109, allocations: 145.3 kB / 0.4936 GB, free: 8.039 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000712/0.5116, allocations: 431.5 kB / 0.494 GB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5116, allocations: 0 / 0.494 GB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.512, allocations: 265.4 kB / 0.4943 GB, free: 7.359 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.5124, allocations: 54.16 kB / 0.4944 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.5153, allocations: 1.216 MB / 0.4955 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.5159, allocations: 0.9561 MB / 0.4965 GB, free: 5.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005538/0.5165, allocations: 188.5 kB / 0.4967 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.5166, allocations: 55.42 kB / 0.4967 GB, free: 4.809 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5167, allocations: 0 / 0.4967 GB, free: 4.809 MB / 378.7 MB Notification: Performance of Templates: time 0.009077/0.5257, allocations: 3.881 MB / 0.5005 GB, free: 0.9492 MB / 378.7 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)