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.01901/0.01901, allocations: 2.539 MB / 10.02 MB, free: 424 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.001331/0.001331, allocations: 173.5 kB / 11.17 MB, free: 1.488 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.353/1.353, allocations: 221.5 MB / 233.7 MB, free: 3.98 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.0009474/0.0009473, allocations: 95.78 kB / 285.2 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.527e-05/1.529e-05, allocations: 3.984 kB / 342.5 MB, free: 6.035 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08933, allocations: 51.03 MB / 393.5 MB, free: 2.973 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2988/0.3882, allocations: 81.66 MB / 475.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3884, allocations: 63.97 kB / 475.2 MB, free: 6.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04886/0.4373, allocations: 16.12 MB / 491.4 MB, free: 6.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4374, allocations: 4 kB / 491.4 MB, free: 6.801 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.397e-05/0.4374, allocations: 21.08 kB / 491.4 MB, free: 6.781 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.002773/0.4402, allocations: 1.053 MB / 492.4 MB, free: 5.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4403, allocations: 12.02 kB / 492.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.4405, allocations: 83.06 kB / 492.5 MB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004976/0.4455, allocations: 1.861 MB / 494.4 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.639e-05/0.4455, allocations: 23.98 kB / 494.4 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.67e-05/0.4456, allocations: 36.34 kB / 494.5 MB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008674/0.4465, allocations: 482.3 kB / 494.9 MB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009386/0.4475, allocations: 0.5777 MB / 495.5 MB, free: 2.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.05e-05/0.4475, allocations: 3.938 kB / 495.5 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.4476, allocations: 0 / 495.5 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-05/0.4476, allocations: 25.31 kB / 495.5 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003517/0.4511, allocations: 2.106 MB / 497.6 MB, free: 320 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008152/0.452, allocations: 449.8 kB / 498.1 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.4523, allocations: 190.1 kB / 498.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.4524, allocations: 170.4 kB / 498.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.4525, allocations: 42.8 kB / 498.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.374e-06/0.4525, allocations: 0 / 498.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008103/0.4533, allocations: 407.7 kB / 498.9 MB, free: 15.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.4533, allocations: 81.11 kB / 499 MB, free: 14.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005298/0.4539, allocations: 453.9 kB / 499.4 MB, free: 14.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.4539, allocations: 25.7 kB / 499.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.4542, allocations: 359.7 kB / 499.8 MB, free: 14.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.4543, allocations: 126.2 kB / 499.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.4543, allocations: 4 kB / 499.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4545, allocations: 370.7 kB / 0.4885 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.4548, allocations: 169.5 kB / 0.4887 GB, free: 13.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.4552, allocations: 371 kB / 0.4891 GB, free: 12.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.4556, allocations: 216.4 kB / 0.4893 GB, free: 12.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4556, allocations: 0 / 0.4893 GB, free: 12.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001011/0.4567, allocations: 0.5718 MB / 0.4898 GB, free: 12.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4567, allocations: 8 kB / 0.4898 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4567, allocations: 4 kB / 0.4898 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.4567, allocations: 12 kB / 0.4898 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/0.4572, allocations: 111.8 kB / 0.4899 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.4572, allocations: 19.92 kB / 0.49 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.4577, allocations: 51.5 kB / 0.49 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/0.4577, allocations: 35.98 kB / 0.49 GB, free: 11.93 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.0001494/0.4579, allocations: 143 kB / 0.4902 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006998/0.4586, allocations: 400 kB / 0.4906 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.4587, allocations: 51.34 kB / 0.4906 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008768/0.4596, allocations: 495.3 kB / 0.4911 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.4596, allocations: 4 kB / 0.4911 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.4596, allocations: 3.984 kB / 0.4911 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.4597, allocations: 19.88 kB / 0.4911 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.4616, allocations: 1.217 MB / 0.4923 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4616, allocations: 4 kB / 0.4923 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.4619, allocations: 55.84 kB / 0.4924 GB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.4619, allocations: 7.984 kB / 0.4924 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.462, allocations: 8 kB / 0.4924 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.462, allocations: 8 kB / 0.4924 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.462, allocations: 0 / 0.4924 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.463, allocations: 0.872 MB / 0.4932 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.4633, allocations: 184.3 kB / 0.4934 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.316e-05/0.4633, allocations: 7.953 kB / 0.4934 GB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.4638, allocations: 27.95 kB / 0.4934 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.4639, allocations: 67.83 kB / 0.4935 GB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.464, allocations: 20.05 kB / 0.4935 GB, free: 8.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004179/0.4644, allocations: 358.9 kB / 0.4939 GB, free: 7.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4644, allocations: 0 / 0.4939 GB, free: 7.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006099/0.465, allocations: 127.6 kB / 0.494 GB, free: 7.645 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.001628/0.4666, allocations: 2.142 MB / 0.4961 GB, free: 5.402 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006911/0.4673, allocations: 419.5 kB / 0.4965 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4674, allocations: 0 / 0.4965 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003914/0.4678, allocations: 273.8 kB / 0.4967 GB, free: 4.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/0.4682, allocations: 54.72 kB / 0.4968 GB, free: 4.676 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.4716, allocations: 1.357 MB / 0.4981 GB, free: 3.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.4722, allocations: 0.9561 MB / 0.4991 GB, free: 2.266 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005874/0.4728, allocations: 188.5 kB / 0.4992 GB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.4731, allocations: 239.3 kB / 0.4995 GB, free: 1.844 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4731, allocations: 0 / 0.4995 GB, free: 1.844 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.5026, allocations: 9.293 MB / 0.5085 GB, free: 8.574 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.5028, allocations: 110.9 kB / 0.5086 GB, free: 8.383 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.67, allocations: 0 / 0.5086 GB, free: 8.383 MB / 394.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)