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: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02549/0.02549, allocations: 2.572 MB / 17.52 MB, free: 4.191 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.001263/0.001263, allocations: 181.3 kB / 18.99 MB, free: 3.004 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.543/1.543, allocations: 223.2 MB / 243.5 MB, free: 8.539 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.0009052/0.0009052, allocations: 103 kB / 295.3 MB, free: 8.07 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.0004269, allocations: 12 kB / 356.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.271, allocations: 51.02 MB / 407.9 MB, free: 29.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4166, allocations: 82.39 MB / 490.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.4169, allocations: 72.72 kB / 490.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04756/0.4645, allocations: 16.29 MB / 0.4948 GB, free: 10.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4645, allocations: 3.938 kB / 0.4948 GB, free: 10.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.457e-05/0.4646, allocations: 23.98 kB / 0.4948 GB, free: 10.1 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.003508/0.4681, allocations: 1.247 MB / 0.496 GB, free: 8.801 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.4682, allocations: 8.031 kB / 0.496 GB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.4684, allocations: 98.52 kB / 0.4961 GB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.4686, allocations: 82.97 kB / 0.4962 GB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005263/0.4738, allocations: 1.949 MB / 0.4981 GB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.4739, allocations: 49.66 kB / 0.4981 GB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.474, allocations: 51.95 kB / 0.4982 GB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.4754, allocations: 0.681 MB / 0.4989 GB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.4755, allocations: 3.906 kB / 0.4989 GB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.4756, allocations: 24 kB / 0.4989 GB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.705e-05/0.4756, allocations: 29 kB / 0.4989 GB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.4771, allocations: 0.5893 MB / 0.4995 GB, free: 5.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.4811, allocations: 2.204 MB / 0.5016 GB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.4828, allocations: 0.494 MB / 0.5021 GB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/0.483, allocations: 174.4 kB / 0.5023 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.483, allocations: 46.5 kB / 0.5023 GB, free: 2.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.304e-06/0.483, allocations: 0 / 0.5023 GB, free: 2.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001868/0.4849, allocations: 0.604 MB / 0.5029 GB, free: 1.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.485, allocations: 81.11 kB / 0.503 GB, free: 1.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/0.4857, allocations: 0.5254 MB / 0.5035 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.4857, allocations: 33.7 kB / 0.5035 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.486, allocations: 363.1 kB / 0.5039 GB, free: 452 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.4861, allocations: 122.3 kB / 0.504 GB, free: 328 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.4862, allocations: 15.94 kB / 0.504 GB, free: 312 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.25/0.7362, allocations: 370.8 kB / 0.5044 GB, free: 93.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009415/0.7372, allocations: 193.8 kB / 0.5046 GB, free: 93.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008189/0.738, allocations: 395.3 kB / 0.5049 GB, free: 93.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007038/0.7387, allocations: 229.2 kB / 0.5052 GB, free: 93.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.7388, allocations: 2.844 kB / 0.5052 GB, free: 93.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001914/0.7407, allocations: 0.6417 MB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.7407, allocations: 11.98 kB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.7408, allocations: 10 kB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.067e-05/0.7408, allocations: 10.81 kB / 0.5058 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000521/0.7414, allocations: 113.3 kB / 0.5059 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.059e-05/0.7414, allocations: 16.12 kB / 0.5059 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005971/0.742, allocations: 75.66 kB / 0.506 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.7421, allocations: 29.83 kB / 0.506 GB, free: 93.28 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.0004561/0.7425, allocations: 269.1 kB / 0.5063 GB, free: 93.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.7427, allocations: 60.25 kB / 0.5064 GB, free: 93.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.7441, allocations: 0.5281 MB / 0.5069 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.7441, allocations: 4.344 kB / 0.5069 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.7441, allocations: 5.172 kB / 0.5069 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.7441, allocations: 2.969 kB / 0.5069 GB, free: 93.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.7468, allocations: 1.332 MB / 0.5082 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.7469, allocations: 2.734 kB / 0.5082 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.7471, allocations: 50.16 kB / 0.5082 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.7471, allocations: 4.938 kB / 0.5082 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.7472, allocations: 13.8 kB / 0.5083 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.7472, allocations: 8.594 kB / 0.5083 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.7472, allocations: 7.625 kB / 0.5083 GB, free: 92.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.7493, allocations: 0.9123 MB / 0.5092 GB, free: 92.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003211/0.7497, allocations: 194.2 kB / 0.5093 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.283e-05/0.7498, allocations: 8.625 kB / 0.5094 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.7501, allocations: 25.42 kB / 0.5094 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.7503, allocations: 69.84 kB / 0.5094 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/0.7504, allocations: 17.03 kB / 0.5095 GB, free: 92.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005335/0.7509, allocations: 436.7 kB / 0.5099 GB, free: 91.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7509, allocations: 0 / 0.5099 GB, free: 91.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000695/0.7516, allocations: 138 kB / 0.51 GB, free: 91.94 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.002099/0.7537, allocations: 2.201 MB / 0.5122 GB, free: 90.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.755, allocations: 485.1 kB / 0.5126 GB, free: 90.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.755, allocations: 0 / 0.5126 GB, free: 90.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006072/0.7556, allocations: 292.5 kB / 0.5129 GB, free: 90.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.756, allocations: 59.67 kB / 0.513 GB, free: 90.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007682/0.7637, allocations: 8.391 MB / 0.5212 GB, free: 84.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/0.7642, allocations: 0.9496 MB / 0.5221 GB, free: 83.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005682/0.7648, allocations: 197.1 kB / 0.5223 GB, free: 83.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.7651, allocations: 236.2 kB / 0.5225 GB, free: 83.12 MB / 378.7 MB Notification: Performance of SimCode: time 2.344e-06/0.7651, allocations: 3.5 kB / 0.5225 GB, free: 83.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.788, allocations: 10.48 MB / 0.5327 GB, free: 78.15 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.7882, allocations: 154.5 kB / 0.5329 GB, free: 77.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/3.051, allocations: 0 / 0.5329 GB, free: 77.91 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)