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.01803/0.01803, allocations: 2.577 MB / 18.53 MB, free: 3.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 180.8 kB / 20 MB, free: 1.809 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.3 MB / 244.6 MB, free: 6.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008089/0.0008088, allocations: 110.1 kB / 296.4 MB, free: 7.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004627/0.000463, allocations: 16 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2436, allocations: 51.02 MB / 409.1 MB, free: 28.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1091/0.3528, allocations: 82.44 MB / 491.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.3531, allocations: 70.34 kB / 491.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04804/0.4011, allocations: 16.17 MB / 0.4958 GB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4012, allocations: 0 / 0.4958 GB, free: 10.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.975e-05/0.4012, allocations: 16 kB / 0.4959 GB, free: 10.03 MB / 378.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.003636/0.4049, allocations: 1.235 MB / 0.4971 GB, free: 8.746 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.4049, allocations: 12.22 kB / 0.4971 GB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003416/0.4053, allocations: 83.91 kB / 0.4972 GB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002724/0.408, allocations: 1.134 MB / 0.4983 GB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.605e-05/0.4081, allocations: 49.67 kB / 0.4983 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.4082, allocations: 52.38 kB / 0.4984 GB, free: 7.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.4098, allocations: 0.6777 MB / 0.499 GB, free: 6.676 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.4099, allocations: 3.938 kB / 0.499 GB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.48e-05/0.41, allocations: 31.94 kB / 0.4991 GB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.4101, allocations: 32.98 kB / 0.4991 GB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.4117, allocations: 0.5842 MB / 0.4997 GB, free: 6.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004262/0.416, allocations: 2.208 MB / 0.5018 GB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.4176, allocations: 0.4945 MB / 0.5023 GB, free: 3.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005685/0.4182, allocations: 224.3 kB / 0.5025 GB, free: 2.969 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.4183, allocations: 178.1 kB / 0.5027 GB, free: 2.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.4184, allocations: 34.56 kB / 0.5027 GB, free: 2.715 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.745e-06/0.4184, allocations: 0 / 0.5027 GB, free: 2.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001807/0.4202, allocations: 0.6005 MB / 0.5033 GB, free: 2.109 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.4203, allocations: 85.11 kB / 0.5034 GB, free: 2.008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008671/0.4212, allocations: 0.5887 MB / 0.504 GB, free: 1.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.4212, allocations: 33.7 kB / 0.504 GB, free: 1.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.4215, allocations: 359.8 kB / 0.5043 GB, free: 1.012 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.4216, allocations: 118.4 kB / 0.5045 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.4216, allocations: 16 kB / 0.5045 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.4218, allocations: 370.8 kB / 0.5048 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006375/0.4225, allocations: 197 kB / 0.505 GB, free: 324 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2096/0.6321, allocations: 392.5 kB / 0.5054 GB, free: 93.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.6335, allocations: 0.565 MB / 0.5059 GB, free: 93.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.6335, allocations: 2.531 kB / 0.5059 GB, free: 93.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001666/0.6352, allocations: 0.6517 MB / 0.5066 GB, free: 93.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.6352, allocations: 8.125 kB / 0.5066 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.6353, allocations: 9.359 kB / 0.5066 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.6353, allocations: 10.31 kB / 0.5066 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.6357, allocations: 105.1 kB / 0.5067 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.6357, allocations: 14.91 kB / 0.5067 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004616/0.6362, allocations: 76.98 kB / 0.5068 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.166e-05/0.6363, allocations: 31.7 kB / 0.5068 GB, free: 93.27 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * 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.0003943/0.6367, allocations: 274 kB / 0.5071 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.6368, allocations: 61.56 kB / 0.5071 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.6381, allocations: 0.5279 MB / 0.5077 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.6381, allocations: 3.438 kB / 0.5077 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.6382, allocations: 1.312 kB / 0.5077 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.6382, allocations: 3.984 kB / 0.5077 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.6404, allocations: 1.336 MB / 0.509 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.6405, allocations: 6.391 kB / 0.509 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002106/0.6407, allocations: 49.27 kB / 0.509 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.6407, allocations: 4 kB / 0.509 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.6407, allocations: 12.14 kB / 0.509 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.6408, allocations: 6.828 kB / 0.509 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.6408, allocations: 3.234 kB / 0.509 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.6424, allocations: 0.8091 MB / 0.5098 GB, free: 92.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.6427, allocations: 178.9 kB / 0.51 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.578e-05/0.6427, allocations: 10.19 kB / 0.51 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.6431, allocations: 30.89 kB / 0.51 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.6432, allocations: 77.95 kB / 0.5101 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.6433, allocations: 11 kB / 0.5101 GB, free: 92.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005718/0.6438, allocations: 440.4 kB / 0.5105 GB, free: 92.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6438, allocations: 0 / 0.5105 GB, free: 92.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006885/0.6445, allocations: 138.6 kB / 0.5107 GB, free: 92.09 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 37 * 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.0002425/0.6448, allocations: 142.9 kB / 0.5108 GB, free: 92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.6461, allocations: 486.2 kB / 0.5113 GB, free: 91.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.6461, allocations: 4.875 kB / 0.5113 GB, free: 91.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005802/0.6467, allocations: 289.7 kB / 0.5116 GB, free: 91.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.6474, allocations: 69.62 kB / 0.5116 GB, free: 91.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.6494, allocations: 1.497 MB / 0.5131 GB, free: 91.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.6498, allocations: 0.9417 MB / 0.514 GB, free: 90.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004963/0.6503, allocations: 194.2 kB / 0.5142 GB, free: 90.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.6504, allocations: 51.28 kB / 0.5142 GB, free: 90.52 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6504, allocations: 0 / 0.5142 GB, free: 90.52 MB / 378.7 MB Notification: Performance of Templates: time 0.008561/0.659, allocations: 4.404 MB / 0.5185 GB, free: 90.27 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)