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.01284/0.01284, allocations: 2.536 MB / 15.09 MB, free: 204 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 175.4 kB / 16.35 MB, free: 4.02 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.395/1.395, allocations: 221.4 MB / 238.9 MB, free: 11.41 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.000952/0.000952, allocations: 111.1 kB / 290.4 MB, free: 10.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.856e-05, allocations: 4 kB / 349.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3345, allocations: 51.02 MB / 400.4 MB, free: 31.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1143/0.4488, allocations: 82.33 MB / 482.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4491, allocations: 68.88 kB / 482.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04797/0.4971, allocations: 16.26 MB / 499.1 MB, free: 12.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.123e-06/0.4971, allocations: 1.094 kB / 499.1 MB, free: 12.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.967e-05/0.4972, allocations: 23.98 kB / 499.1 MB, free: 12.22 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.002742/0.5, allocations: 1.052 MB / 0.4884 GB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.5, allocations: 10.47 kB / 0.4884 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.5002, allocations: 106.5 kB / 0.4885 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.5003, allocations: 79.06 kB / 0.4886 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005238/0.5056, allocations: 1.871 MB / 0.4904 GB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.966e-05/0.5057, allocations: 45.66 kB / 0.4905 GB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.5058, allocations: 59.94 kB / 0.4905 GB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.507, allocations: 0.6577 MB / 0.4912 GB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.507, allocations: 0 / 0.4912 GB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.5071, allocations: 28 kB / 0.4912 GB, free: 8.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/0.5071, allocations: 28.98 kB / 0.4912 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009249/0.508, allocations: 0.5388 MB / 0.4918 GB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.5117, allocations: 2.219 MB / 0.4939 GB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008063/0.5126, allocations: 450 kB / 0.4943 GB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000307/0.5129, allocations: 194.1 kB / 0.4945 GB, free: 4.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.513, allocations: 182.1 kB / 0.4947 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.5131, allocations: 38.56 kB / 0.4947 GB, free: 4.387 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.525e-06/0.5131, allocations: 0 / 0.4947 GB, free: 4.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007457/0.5138, allocations: 406.6 kB / 0.4951 GB, free: 3.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.5139, allocations: 85.11 kB / 0.4952 GB, free: 3.883 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006114/0.5145, allocations: 0.5136 MB / 0.4957 GB, free: 3.359 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.5145, allocations: 33.7 kB / 0.4957 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.5148, allocations: 355.9 kB / 0.4961 GB, free: 2.969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.5149, allocations: 122.3 kB / 0.4962 GB, free: 2.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.5149, allocations: 12 kB / 0.4962 GB, free: 2.836 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5151, allocations: 374.8 kB / 0.4966 GB, free: 2.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.5154, allocations: 177.1 kB / 0.4967 GB, free: 2.289 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.5158, allocations: 374.6 kB / 0.4971 GB, free: 1.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.5162, allocations: 207.7 kB / 0.4973 GB, free: 1.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.5162, allocations: 4 kB / 0.4973 GB, free: 1.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009415/0.5171, allocations: 0.6103 MB / 0.4979 GB, free: 1.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.5172, allocations: 11.95 kB / 0.4979 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.5172, allocations: 7.938 kB / 0.4979 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.5172, allocations: 12 kB / 0.4979 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003952/0.5176, allocations: 115.8 kB / 0.498 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.5176, allocations: 12.09 kB / 0.498 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.5181, allocations: 83.28 kB / 0.4981 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.148e-05/0.5182, allocations: 31.98 kB / 0.4982 GB, free: 0.7422 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 (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.0001485/0.5183, allocations: 151 kB / 0.4983 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.5185, allocations: 59.25 kB / 0.4984 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008518/0.5193, allocations: 0.4944 MB / 0.4988 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.5193, allocations: 4 kB / 0.4988 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5193, allocations: 0 / 0.4988 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5194, allocations: 0 / 0.4988 GB, free: 8 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2978/0.8171, allocations: 1.29 MB / 0.5001 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.8172, allocations: 4.25 kB / 0.5001 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002723/0.8175, allocations: 52.59 kB / 0.5002 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-05/0.8175, allocations: 4.188 kB / 0.5002 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/0.8176, allocations: 16.98 kB / 0.5002 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.147e-05/0.8176, allocations: 4.281 kB / 0.5002 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.8176, allocations: 6.219 kB / 0.5002 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.8189, allocations: 0.8655 MB / 0.501 GB, free: 94.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.8192, allocations: 182.4 kB / 0.5012 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.038e-05/0.8193, allocations: 9.156 kB / 0.5012 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.8197, allocations: 29.19 kB / 0.5012 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.8199, allocations: 70.69 kB / 0.5013 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.8199, allocations: 19.48 kB / 0.5013 GB, free: 94.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006545/0.8206, allocations: 428 kB / 0.5017 GB, free: 94.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.8206, allocations: 4.312 kB / 0.5017 GB, free: 94.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007642/0.8214, allocations: 138.7 kB / 0.5019 GB, free: 94.33 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 (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.001934/0.8233, allocations: 2.134 MB / 0.504 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009753/0.8243, allocations: 455.3 kB / 0.5044 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.8243, allocations: 0.5625 kB / 0.5044 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.8248, allocations: 270.1 kB / 0.5047 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.8252, allocations: 65.09 kB / 0.5047 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.8285, allocations: 1.375 MB / 0.5061 GB, free: 92.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.829, allocations: 0.9538 MB / 0.507 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000511/0.8295, allocations: 193.2 kB / 0.5072 GB, free: 91.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.8298, allocations: 241.4 kB / 0.5074 GB, free: 91.65 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.8299, allocations: 0 / 0.5074 GB, free: 91.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.8529, allocations: 10.34 MB / 0.5175 GB, free: 89.39 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.8531, allocations: 137.4 kB / 0.5176 GB, free: 89.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.387/3.24, allocations: 0 / 0.5176 GB, free: 89.16 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)