Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDCVoltages.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 110 kB / 16.27 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 189.6 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01281/0.01281, allocations: 2.601 MB / 293.7 MB, free: 12.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 95.84 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2253, allocations: 50.03 MB / 404.8 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.007842/0.2333, allocations: 5.656 MB / 410.4 MB, free: 27.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00419/0.2375, allocations: 1.922 MB / 412.3 MB, free: 25.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007385/0.2383, allocations: 39.81 kB / 412.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006895/0.239, allocations: 266 kB / 412.6 MB, free: 25.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.2411, allocations: 0.7386 MB / 413.4 MB, free: 24.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005131/0.2416, allocations: 299.6 kB / 413.7 MB, free: 24.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.2438, allocations: 3.15 MB / 416.8 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.2456, allocations: 2.498 MB / 419.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.2468, allocations: 1.383 MB / 420.7 MB, free: 17.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.2481, allocations: 1.647 MB / 422.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003732/0.2485, allocations: 392 kB / 422.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.2492, allocations: 468 kB / 423.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005857/0.2498, allocations: 1.068 MB / 424.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.251, allocations: 1.684 MB / 425.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.254, allocations: 4.974 MB / 430.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.254, allocations: 0 / 430.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.254, allocations: 0 / 430.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.737e-05/0.2541, allocations: 0 / 430.9 MB, free: 7.133 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 627 * Number of variables: 627 Notification: Performance of Generate backend data structure: time 0.006216/0.2603, allocations: 3.612 MB / 434.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2603, allocations: 12.03 kB / 434.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005067/0.2608, allocations: 321.1 kB / 434.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.263, allocations: 1.858 MB / 436.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.928e-05/0.2631, allocations: 180.8 kB / 436.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002767/0.2634, allocations: 224 kB / 437.1 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005809/0.2692, allocations: 3.75 MB / 440.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/0.2693, allocations: 7.938 kB / 440.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002333/0.2695, allocations: 92 kB / 440.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.2696, allocations: 116.7 kB / 441.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006293/0.2759, allocations: 3.586 MB / 444.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01785/0.2938, allocations: 11.6 MB / 456.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005316/0.2992, allocations: 2.901 MB / 459.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/0.302, allocations: 1.663 MB / 460.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002042/0.3022, allocations: 107.1 kB / 460.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.3022, allocations: 52.56 kB / 461 MB, free: 8.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=169): time 5.08e-06/0.3023, allocations: 3.984 kB / 461 MB, free: 8.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=169): time 0.0144/0.3167, allocations: 6.122 MB / 467.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.3167, allocations: 69.41 kB / 467.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/0.3198, allocations: 2.119 MB / 469.3 MB, free: 76 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.32, allocations: 49.7 kB / 469.3 MB, free: 20 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008766/0.3209, allocations: 1.076 MB / 470.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005262/0.3214, allocations: 0.5006 MB / 470.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000578/0.322, allocations: 363.3 kB / 471.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3221, allocations: 305.1 kB / 471.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.3241, allocations: 1.034 MB / 472.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/0.3262, allocations: 1.426 MB / 474 MB, free: 11.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003787/0.33, allocations: 2.304 MB / 476.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.3301, allocations: 0 / 476.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005946/0.336, allocations: 3.287 MB / 479.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.3361, allocations: 8 kB / 479.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.3361, allocations: 15.94 kB / 479.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/0.3389, allocations: 1.252 MB / 480.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.3397, allocations: 211.6 kB / 481.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01994/0.3597, allocations: 17.11 MB / 498.2 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.3615, allocations: 249.8 kB / 498.4 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/0.3618, allocations: 75.98 kB / 498.5 MB, free: 1.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 45 (inverter.diode_n.idealDiode[5].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[1].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.diode_p.idealDiode[5].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[1].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[1].off,inverter.andCondition_n[5].y,inverter.andCondition_n[4].y,inverter.andCondition_n[3].y,inverter.andCondition_n[2].y,inverter.andCondition_n[1].y,inverter.andCondition_p[5].y,inverter.andCondition_p[4].y,inverter.andCondition_p[3].y,inverter.andCondition_p[2].y,inverter.andCondition_p[1].y,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],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(4,13), (4,13), (4,13), (4,13), (4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.001817/0.3636, allocations: 1.002 MB / 499.5 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005881/0.3642, allocations: 213.4 kB / 499.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006533/0.3708, allocations: 3.389 MB / 0.4913 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.3708, allocations: 19.98 kB / 0.4913 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3708, allocations: 7.922 kB / 0.4913 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.3708, allocations: 11.97 kB / 0.4914 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.3823, allocations: 6.65 MB / 0.4979 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.3824, allocations: 0 / 0.4979 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006001/0.383, allocations: 127.8 kB / 0.498 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.3855, allocations: 1.209 MB / 0.4992 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.3856, allocations: 35.98 kB / 0.4992 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.174/0.5596, allocations: 16.64 MB / 0.5154 GB, free: 90.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5597, allocations: 0.5 kB / 0.5154 GB, free: 90.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007375/0.567, allocations: 4.778 MB / 0.5201 GB, free: 88.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.5681, allocations: 0.5818 MB / 0.5207 GB, free: 87.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/0.5685, allocations: 33.97 kB / 0.5207 GB, free: 87.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.5697, allocations: 126.4 kB / 0.5208 GB, free: 87.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006646/0.5704, allocations: 316.8 kB / 0.5211 GB, free: 87.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5705, allocations: 45.02 kB / 0.5212 GB, free: 87.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001908/0.5724, allocations: 1.463 MB / 0.5226 GB, free: 86.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5725, allocations: 0 / 0.5226 GB, free: 86.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002492/0.5749, allocations: 0.7765 MB / 0.5234 GB, free: 86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 45 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[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],inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_p[4].y,inverter.andCondition_p[5].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.andCondition_n[4].y,inverter.andCondition_n[5].y,inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[5].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[5].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(4,12), (4,12), (4,12), (4,12), (4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003946/0.5754, allocations: 205 kB / 0.5236 GB, free: 85.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006999/0.5824, allocations: 4.572 MB / 0.528 GB, free: 81.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5824, allocations: 0 / 0.528 GB, free: 81.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002965/0.5854, allocations: 2.361 MB / 0.5303 GB, free: 78.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.5878, allocations: 0.617 MB / 0.5309 GB, free: 78.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.5983, allocations: 5.795 MB / 0.5366 GB, free: 72.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/0.6, allocations: 2.148 MB / 0.5387 GB, free: 70.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/0.6005, allocations: 151.4 kB / 0.5388 GB, free: 70.11 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.6005, allocations: 0 / 0.5388 GB, free: 70.11 MB / 382.1 MB Notification: Performance of Templates: time 0.0903/0.6908, allocations: 99.66 MB / 0.6361 GB, free: 2.449 MB / 414.1 MB make -j1 -f BLDC_BLDC.Examples.DemoBLDCVoltages.makefile (rm -f BLDC_BLDC.Examples.DemoBLDCVoltages.pipe ; mkfifo BLDC_BLDC.Examples.DemoBLDCVoltages.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoBLDCVoltages.pipe >> ../files/BLDC_BLDC.Examples.DemoBLDCVoltages.sim & ./BLDC_BLDC.Examples.DemoBLDCVoltages -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoBLDCVoltages.pipe 2>&1)