Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDCwithPWM.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.DemoBLDCwithPWM,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCwithPWM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoBLDCwithPWM,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCwithPWM",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01204/0.01204, allocations: 2.546 MB / 9.828 MB, free: 440 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.001248/0.001248, allocations: 185.1 kB / 10.97 MB, free: 1.891 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.197/1.197, allocations: 221.4 MB / 233.4 MB, free: 4.074 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.0009529/0.0009533, allocations: 99.38 kB / 284.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1507/0.1517, allocations: 57.12 MB / 341.9 MB, free: 6.418 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08482/0.2366, allocations: 51.01 MB / 393 MB, free: 3.352 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2691/0.5057, allocations: 122.2 MB / 0.5031 GB, free: 14.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.5059, allocations: 71.97 kB / 0.5031 GB, free: 14.7 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1366 * Number of variables: 1366 Notification: Performance of Generate backend data structure: time 0.4416/0.9475, allocations: 125.3 MB / 0.6255 GB, free: 79.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.9476, allocations: 8 kB / 0.6255 GB, free: 79.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006097/0.9537, allocations: 0.953 MB / 0.6264 GB, free: 78.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01606/0.9697, allocations: 6.134 MB / 0.6324 GB, free: 72.65 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002584/0.97, allocations: 172 kB / 0.6326 GB, free: 72.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001695/0.9717, allocations: 303.9 kB / 0.6329 GB, free: 72.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0138/0.9856, allocations: 5.874 MB / 0.6386 GB, free: 66.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/1.002, allocations: 6.468 MB / 0.6449 GB, free: 59.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000217/1.002, allocations: 4 kB / 0.6449 GB, free: 59.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/1.004, allocations: 15.84 kB / 0.6449 GB, free: 59.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001795/1.004, allocations: 242.2 kB / 0.6452 GB, free: 59.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03975/1.043, allocations: 22.55 MB / 0.6672 GB, free: 36.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00402/1.048, allocations: 2.462 MB / 0.6696 GB, free: 34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003801/1.051, allocations: 2.534 MB / 0.6721 GB, free: 31.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.066, allocations: 7.699 MB / 0.6796 GB, free: 23.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002886/1.069, allocations: 2.019 MB / 0.6816 GB, free: 21.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=298): time 6.953e-06/1.069, allocations: 7.984 kB / 0.6816 GB, free: 21.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=302): time 0.01496/1.084, allocations: 8.594 MB / 0.69 GB, free: 12.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/1.084, allocations: 240 kB / 0.6902 GB, free: 12.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004267/1.089, allocations: 2.335 MB / 0.6925 GB, free: 10.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005119/1.089, allocations: 25.7 kB / 0.6925 GB, free: 10.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00207/1.091, allocations: 1.808 MB / 0.6943 GB, free: 8.457 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/1.092, allocations: 0.9084 MB / 0.6952 GB, free: 7.543 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/1.093, allocations: 0 / 0.6952 GB, free: 7.543 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002514/1.093, allocations: 436.7 kB / 0.6956 GB, free: 7.109 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/1.095, allocations: 1.596 MB / 0.6971 GB, free: 5.512 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002945/1.098, allocations: 2.363 MB / 0.6994 GB, free: 2.832 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003145/1.101, allocations: 1.883 MB / 0.7013 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.005e-05/1.102, allocations: 4 kB / 0.7013 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.009222/1.111, allocations: 4.932 MB / 0.7061 GB, free: 11.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002979/1.114, allocations: 8.942 MB / 0.7148 GB, free: 2.289 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.674e-05/1.114, allocations: 20 kB / 0.7148 GB, free: 2.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003316/1.117, allocations: 1.44 MB / 0.7163 GB, free: 0.8203 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/1.12, allocations: 0.5614 MB / 0.7168 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1653/1.285, allocations: 14.12 MB / 0.7306 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/1.288, allocations: 142.6 kB / 0.7307 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003656/1.289, allocations: 135 kB / 0.7309 GB, free: 125.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/1.289, allocations: 3.312 kB / 0.7309 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00658/1.295, allocations: 4.574 MB / 0.7353 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/1.295, allocations: 22.12 kB / 0.7353 GB, free: 125.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/1.298, allocations: 1.426 MB / 0.7367 GB, free: 125.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/1.3, allocations: 0.5499 MB / 0.7373 GB, free: 125.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/1.315, allocations: 14.12 MB / 0.7511 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/1.318, allocations: 137.8 kB / 0.7512 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005002/1.319, allocations: 129.7 kB / 0.7513 GB, free: 120.3 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plug_p.pin[1].v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.pwm.zeroOrderHold.firstTrigger,pwm.zeroOrderHold.firstTrigger,$whenCondition2,pwm.zeroOrderHold.sampleTrigger,pwm.zeroOrderHold.ySample,$whenCondition1,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,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],electronicCommutator.pwm,$PRE.pwm.zeroOrderHold.ySample,$PRE.pwm.triangle.T_start,pwm.triangle.T_start,$PRE.pwm.triangle.count,pwm.triangle.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (320): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {13 49,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008231/1.32, allocations: 227.2 kB / 0.7515 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007257/1.32, allocations: 339.8 kB / 0.7519 GB, free: 120.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007449/1.328, allocations: 4.688 MB / 0.7564 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/1.328, allocations: 28.97 kB / 0.7565 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/1.328, allocations: 0 / 0.7565 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.722e-05/1.328, allocations: 18.16 kB / 0.7565 GB, free: 120 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/1.342, allocations: 9.61 MB / 0.7659 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.342, allocations: 3.75 kB / 0.7659 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/1.343, allocations: 312.6 kB / 0.7662 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003336/1.347, allocations: 1.675 MB / 0.7678 GB, free: 116.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/1.347, allocations: 20.19 kB / 0.7678 GB, free: 116.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01789/1.365, allocations: 15.91 MB / 0.7834 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.365, allocations: 1.594 kB / 0.7834 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009491/1.375, allocations: 7.396 MB / 0.7906 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01302/1.388, allocations: 10.42 MB / 0.8008 GB, free: 99.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002448/1.39, allocations: 0.7911 MB / 0.8015 GB, free: 99.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008173/1.391, allocations: 16.12 kB / 0.8015 GB, free: 99.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/1.393, allocations: 126.8 kB / 0.8017 GB, free: 99.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005903/1.393, allocations: 284.6 kB / 0.8019 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002157/1.394, allocations: 79.64 kB / 0.802 GB, free: 98.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002647/1.396, allocations: 1.723 MB / 0.8037 GB, free: 98.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006209/1.403, allocations: 1.819 MB / 0.8055 GB, free: 96.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,loadInertia.phi) * Number of discrete variables: 53 (pwm.zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,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,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],electronicCommutator.pwm,pwm.zeroOrderHold.firstTrigger,pwm.zeroOrderHold.ySample,pwm.triangle.T_start,pwm.triangle.count) * Number of discrete states: 2 (pwm.triangle.count,pwm.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {21 91} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007067/1.403, allocations: 0.5026 MB / 0.806 GB, free: 95.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009488/1.413, allocations: 7.897 MB / 0.8137 GB, free: 88.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.413, allocations: 2.156 kB / 0.8137 GB, free: 88.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004176/1.417, allocations: 3.103 MB / 0.8167 GB, free: 86.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/1.421, allocations: 0.7679 MB / 0.8175 GB, free: 85.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/1.44, allocations: 8.648 MB / 0.8259 GB, free: 77.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003604/1.443, allocations: 3.841 MB / 0.8297 GB, free: 75.05 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.443, allocations: 0 / 0.8297 GB, free: 75.05 MB / 442.7 MB (rm -f BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe ; mkfifo BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe >> ../files/BLDC_BLDC.Examples.DemoBLDCwithPWM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoBLDCwithPWM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoBLDCwithPWM.fmu > BLDC_BLDC.Examples.DemoBLDCwithPWM.pipe 2>&1)