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.0111/0.0111, 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.001219/0.001219, allocations: 177.6 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.367/1.367, allocations: 221.4 MB / 238.9 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.0008387/0.0008387, allocations: 91.72 kB / 290.4 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.147e-05/3.15e-05, allocations: 0 / 349.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2872, allocations: 51 MB / 400.3 MB, free: 31.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1194/0.4067, allocations: 82.34 MB / 482.6 MB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.407, allocations: 71.97 kB / 482.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04921/0.4562, allocations: 16.26 MB / 499 MB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4563, allocations: 0 / 499 MB, free: 12.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.537e-05/0.4563, allocations: 21.09 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.002784/0.4591, allocations: 1.048 MB / 0.4883 GB, free: 11.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.4592, allocations: 12.03 kB / 0.4883 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.4594, allocations: 79.06 kB / 0.4884 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005008/0.4644, allocations: 1.875 MB / 0.4902 GB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.172e-05/0.4645, allocations: 49.3 kB / 0.4903 GB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.4646, allocations: 52.34 kB / 0.4903 GB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.4658, allocations: 0.6615 MB / 0.491 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.4658, allocations: 3.984 kB / 0.491 GB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-05/0.4659, allocations: 24 kB / 0.491 GB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.353e-05/0.466, allocations: 25 kB / 0.491 GB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009385/0.4669, allocations: 0.5388 MB / 0.4915 GB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/0.4709, allocations: 2.215 MB / 0.4937 GB, free: 5.461 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008382/0.4717, allocations: 460.8 kB / 0.4941 GB, free: 5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.472, allocations: 193.9 kB / 0.4943 GB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.4722, allocations: 178.3 kB / 0.4945 GB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.4722, allocations: 46.52 kB / 0.4945 GB, free: 4.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.815e-06/0.4722, allocations: 0 / 0.4945 GB, free: 4.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007717/0.473, allocations: 410.6 kB / 0.4949 GB, free: 4.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.4731, allocations: 81.11 kB / 0.495 GB, free: 4.035 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006672/0.4737, allocations: 0.5125 MB / 0.4955 GB, free: 3.512 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.4738, allocations: 29.7 kB / 0.4955 GB, free: 3.477 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/0.474, allocations: 363.8 kB / 0.4959 GB, free: 3.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.4741, allocations: 122.3 kB / 0.496 GB, free: 2.996 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.4742, allocations: 16 kB / 0.496 GB, free: 2.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4744, allocations: 370.8 kB / 0.4964 GB, free: 2.609 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.4746, allocations: 177 kB / 0.4965 GB, free: 2.438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.4751, allocations: 374.6 kB / 0.4969 GB, free: 1.977 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/0.4754, allocations: 206.2 kB / 0.4971 GB, free: 1.777 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4754, allocations: 4 kB / 0.4971 GB, free: 1.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009752/0.4764, allocations: 0.6111 MB / 0.4977 GB, free: 1.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.4765, allocations: 8.625 kB / 0.4977 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.4765, allocations: 7.953 kB / 0.4977 GB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.04e-05/0.4765, allocations: 12 kB / 0.4977 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.4769, allocations: 112.5 kB / 0.4978 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.477, allocations: 11.94 kB / 0.4978 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.4775, allocations: 79.34 kB / 0.4979 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.4776, allocations: 28.09 kB / 0.4979 GB, free: 0.9062 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.000191/0.4778, allocations: 162.9 kB / 0.4981 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.4779, allocations: 55.25 kB / 0.4982 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.4789, allocations: 0.4905 MB / 0.4986 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4789, allocations: 4 kB / 0.4986 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.479, allocations: 0 / 0.4986 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.479, allocations: 3.984 kB / 0.4986 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2477/0.7266, allocations: 1.289 MB / 0.4999 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/0.7267, allocations: 6.281 kB / 0.4999 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.7269, allocations: 54.67 kB / 0.5 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.727, allocations: 5.234 kB / 0.5 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.727, allocations: 9.844 kB / 0.5 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.727, allocations: 6.781 kB / 0.5 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.727, allocations: 4.234 kB / 0.5 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.7282, allocations: 0.8713 MB / 0.5008 GB, free: 94.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.7284, allocations: 180.5 kB / 0.501 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.7285, allocations: 16.64 kB / 0.501 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.7289, allocations: 28.25 kB / 0.501 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.7291, allocations: 70.92 kB / 0.5011 GB, free: 94.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.7291, allocations: 20.02 kB / 0.5011 GB, free: 94.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005354/0.7296, allocations: 430 kB / 0.5015 GB, free: 94.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7297, allocations: 0 / 0.5015 GB, free: 94.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006722/0.7303, allocations: 138.6 kB / 0.5017 GB, free: 94.45 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.0002519/0.7306, allocations: 142.3 kB / 0.5018 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008864/0.7315, allocations: 451.9 kB / 0.5022 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.7315, allocations: 0.5 kB / 0.5022 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005225/0.732, allocations: 271.3 kB / 0.5025 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.7324, allocations: 59.66 kB / 0.5026 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.7353, allocations: 1.224 MB / 0.5038 GB, free: 94.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.7357, allocations: 0.9512 MB / 0.5047 GB, free: 93.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000502/0.7362, allocations: 196 kB / 0.5049 GB, free: 93.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.7363, allocations: 55.59 kB / 0.5049 GB, free: 93.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/0.7364, allocations: 0 / 0.5049 GB, free: 93.32 MB / 378.7 MB Notification: Performance of Templates: time 0.008035/0.7444, allocations: 4.394 MB / 0.5092 GB, free: 93.16 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)