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.01241/0.01241, 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.001042/0.001042, allocations: 178.2 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.339/1.339, allocations: 221.4 MB / 238.8 MB, free: 11.43 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.0008937/0.0008937, allocations: 99.58 kB / 290.4 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.305e-05/4.307e-05, allocations: 7.984 kB / 349.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2378, allocations: 50.99 MB / 400.3 MB, free: 31.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09394/0.3317, allocations: 82.32 MB / 482.6 MB, free: 12.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.3321, allocations: 67.97 kB / 482.7 MB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04489/0.377, allocations: 16.26 MB / 498.9 MB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.377, allocations: 3.938 kB / 498.9 MB, free: 12.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.002e-05/0.377, allocations: 27.98 kB / 499 MB, free: 12.27 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.002476/0.3795, allocations: 1.044 MB / 0.4883 GB, free: 11.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3796, allocations: 8.031 kB / 0.4883 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.3797, allocations: 83.06 kB / 0.4884 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004617/0.3844, allocations: 1.871 MB / 0.4902 GB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/0.3845, allocations: 45.31 kB / 0.4902 GB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.785e-05/0.3846, allocations: 56.28 kB / 0.4903 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.3856, allocations: 0.6538 MB / 0.4909 GB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.3857, allocations: 4 kB / 0.4909 GB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/0.3857, allocations: 20 kB / 0.491 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-05/0.3858, allocations: 36.92 kB / 0.491 GB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008539/0.3866, allocations: 0.5427 MB / 0.4915 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003369/0.39, allocations: 2.215 MB / 0.4937 GB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007882/0.3908, allocations: 444.3 kB / 0.4941 GB, free: 5.023 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.3911, allocations: 201.8 kB / 0.4943 GB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.3913, allocations: 182.3 kB / 0.4945 GB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3913, allocations: 42.45 kB / 0.4945 GB, free: 4.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.304e-06/0.3913, allocations: 0 / 0.4945 GB, free: 4.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.0006903/0.392, allocations: 402.7 kB / 0.4949 GB, free: 4.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.392, allocations: 85.05 kB / 0.495 GB, free: 4.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005748/0.3926, allocations: 0.5164 MB / 0.4955 GB, free: 3.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.3927, allocations: 29.7 kB / 0.4955 GB, free: 3.496 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.3929, allocations: 359.9 kB / 0.4959 GB, free: 3.141 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.393, allocations: 130.3 kB / 0.496 GB, free: 3.012 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/0.393, allocations: 8 kB / 0.496 GB, free: 3.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3932, allocations: 378.8 kB / 0.4964 GB, free: 2.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.3935, allocations: 173.2 kB / 0.4965 GB, free: 2.457 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.3939, allocations: 378.6 kB / 0.4969 GB, free: 1.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.3942, allocations: 211.7 kB / 0.4971 GB, free: 1.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3942, allocations: 4 kB / 0.4971 GB, free: 1.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008823/0.3951, allocations: 0.6017 MB / 0.4977 GB, free: 1.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3951, allocations: 9.719 kB / 0.4977 GB, free: 1.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.3952, allocations: 12.8 kB / 0.4977 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/0.3952, allocations: 12 kB / 0.4977 GB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.3956, allocations: 115.8 kB / 0.4978 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.3956, allocations: 16.55 kB / 0.4978 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.396, allocations: 75.34 kB / 0.4979 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.3961, allocations: 27.98 kB / 0.4979 GB, free: 0.918 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.000133/0.3962, allocations: 143.7 kB / 0.4981 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3963, allocations: 59.25 kB / 0.4981 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008214/0.3972, allocations: 0.4982 MB / 0.4986 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3972, allocations: 4 kB / 0.4986 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3972, allocations: 4 kB / 0.4986 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3972, allocations: 4 kB / 0.4986 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.189/0.5862, allocations: 1.288 MB / 0.4999 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5862, allocations: 3.406 kB / 0.4999 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.5865, allocations: 55.16 kB / 0.4999 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.5865, allocations: 5.75 kB / 0.4999 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.5865, allocations: 14.84 kB / 0.5 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.5865, allocations: 6.062 kB / 0.5 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5865, allocations: 2.062 kB / 0.5 GB, free: 94.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009702/0.5875, allocations: 0.8699 MB / 0.5008 GB, free: 94.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.5878, allocations: 185.2 kB / 0.501 GB, free: 94.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.5878, allocations: 14.38 kB / 0.501 GB, free: 94.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/0.5882, allocations: 22.2 kB / 0.501 GB, free: 94.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.5884, allocations: 69.95 kB / 0.5011 GB, free: 94.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.5884, allocations: 19.64 kB / 0.5011 GB, free: 94.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004917/0.5889, allocations: 441.2 kB / 0.5015 GB, free: 94.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5889, allocations: 0 / 0.5015 GB, free: 94.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005591/0.5895, allocations: 133.8 kB / 0.5017 GB, free: 94.36 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.0001998/0.5897, allocations: 148 kB / 0.5018 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.5905, allocations: 445.7 kB / 0.5022 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5905, allocations: 0.5 kB / 0.5022 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005166/0.5911, allocations: 274.9 kB / 0.5025 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.5915, allocations: 58.64 kB / 0.5025 GB, free: 94.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.5946, allocations: 1.222 MB / 0.5037 GB, free: 93.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.595, allocations: 0.9544 MB / 0.5047 GB, free: 93.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005204/0.5955, allocations: 197.1 kB / 0.5049 GB, free: 93.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.5957, allocations: 53.39 kB / 0.5049 GB, free: 93.24 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5957, allocations: 0 / 0.5049 GB, free: 93.24 MB / 378.7 MB Notification: Performance of Templates: time 0.007524/0.6032, allocations: 4.39 MB / 0.5092 GB, free: 93.07 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)