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/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.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",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.02267/0.02267, allocations: 2.535 MB / 10.01 MB, free: 380 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.001394/0.001394, allocations: 177.5 kB / 11.18 MB, free: 1.457 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.327/1.327, allocations: 221.5 MB / 233.7 MB, free: 228 kB / 186.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008521/0.0008522, allocations: 94.56 kB / 285.2 MB, free: 14.46 MB / 234.9 MB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.814e-05, allocations: 0 / 342.5 MB, free: 5.125 MB / 282.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2715, allocations: 51 MB / 393.5 MB, free: 35.49 MB / 298.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.3751, allocations: 90.33 MB / 483.8 MB, free: 9.027 MB / 362.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.3754, allocations: 72.78 kB / 483.9 MB, free: 8.957 MB / 362.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.3051/0.6805, allocations: 47.09 MB / 0.5185 GB, free: 91.2 MB / 378.9 MB Notification: Performance of FrontEnd: time 1.292e-06/0.6805, allocations: 0 / 0.5185 GB, free: 91.2 MB / 378.9 MB Notification: Performance of Transformations before backend: time 0.0001846/0.6807, allocations: 68.14 kB / 0.5186 GB, free: 91.2 MB / 378.9 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.006236/0.687, allocations: 2.875 MB / 0.5214 GB, free: 88.37 MB / 378.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.687, allocations: 8.031 kB / 0.5214 GB, free: 88.36 MB / 378.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008282/0.6879, allocations: 324.2 kB / 0.5217 GB, free: 88.04 MB / 378.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007252/0.6951, allocations: 3.256 MB / 0.5249 GB, free: 84.8 MB / 378.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.821e-05/0.6952, allocations: 87.98 kB / 0.525 GB, free: 84.72 MB / 378.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003514/0.6956, allocations: 144 kB / 0.5251 GB, free: 84.58 MB / 378.9 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004372/0.7, allocations: 3.09 MB / 0.5282 GB, free: 81.48 MB / 378.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/0.7042, allocations: 3.179 MB / 0.5313 GB, free: 78.14 MB / 378.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.468e-05/0.7042, allocations: 4 kB / 0.5313 GB, free: 78.14 MB / 378.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.7044, allocations: 0 / 0.5313 GB, free: 78.14 MB / 378.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.121e-05/0.7045, allocations: 104.7 kB / 0.5314 GB, free: 78.04 MB / 378.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.7193, allocations: 11.34 MB / 0.5424 GB, free: 66.49 MB / 378.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00294/0.7223, allocations: 2.526 MB / 0.5449 GB, free: 63.95 MB / 378.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.7241, allocations: 1.492 MB / 0.5464 GB, free: 62.46 MB / 378.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/0.7242, allocations: 106.2 kB / 0.5465 GB, free: 62.34 MB / 378.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.7243, allocations: 47.81 kB / 0.5465 GB, free: 62.28 MB / 378.9 MB Notification: Performance of pre-optimization done (n=163): time 3.777e-06/0.7243, allocations: 0 / 0.5465 GB, free: 62.28 MB / 378.9 MB Notification: Performance of matching and sorting (n=163): time 0.003145/0.7274, allocations: 2.568 MB / 0.549 GB, free: 59.69 MB / 378.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.7275, allocations: 68.72 kB / 0.5491 GB, free: 59.61 MB / 378.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.7295, allocations: 1.493 MB / 0.5505 GB, free: 58.11 MB / 378.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.7296, allocations: 25.7 kB / 0.5506 GB, free: 58.08 MB / 378.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004999/0.7302, allocations: 1.107 MB / 0.5516 GB, free: 56.97 MB / 378.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/0.7305, allocations: 471.9 kB / 0.5521 GB, free: 56.51 MB / 378.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.7306, allocations: 0 / 0.5521 GB, free: 56.51 MB / 378.9 MB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.7307, allocations: 381.9 kB / 0.5525 GB, free: 56.13 MB / 378.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.7318, allocations: 0.9449 MB / 0.5534 GB, free: 55.19 MB / 378.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.733, allocations: 1.362 MB / 0.5547 GB, free: 53.65 MB / 378.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/0.7344, allocations: 1.064 MB / 0.5557 GB, free: 52.59 MB / 378.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.7344, allocations: 4 kB / 0.5557 GB, free: 52.59 MB / 378.9 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004346/0.7388, allocations: 3.081 MB / 0.5588 GB, free: 49.48 MB / 378.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.7388, allocations: 15.89 kB / 0.5588 GB, free: 49.46 MB / 378.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.7389, allocations: 19.98 kB / 0.5588 GB, free: 49.45 MB / 378.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/0.7411, allocations: 1.211 MB / 0.56 GB, free: 48.22 MB / 378.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009406/0.742, allocations: 235.6 kB / 0.5602 GB, free: 47.99 MB / 378.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/0.7549, allocations: 14.89 MB / 0.5747 GB, free: 32.53 MB / 378.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.7566, allocations: 174.4 kB / 0.5749 GB, free: 32.36 MB / 378.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.7568, allocations: 71.98 kB / 0.575 GB, free: 32.29 MB / 378.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 45 (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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 145 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 11,4 13,4 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003453/0.7572, allocations: 188.8 kB / 0.5752 GB, free: 32.09 MB / 378.9 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003091/0.7603, allocations: 2.568 MB / 0.5777 GB, free: 29.5 MB / 378.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.7606, allocations: 189.7 kB / 0.5778 GB, free: 29.32 MB / 378.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.7639, allocations: 2.742 MB / 0.5805 GB, free: 26.54 MB / 378.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.764, allocations: 16 kB / 0.5805 GB, free: 26.53 MB / 378.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.764, allocations: 4 kB / 0.5805 GB, free: 26.52 MB / 378.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.764, allocations: 7.969 kB / 0.5806 GB, free: 26.52 MB / 378.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008391/0.7724, allocations: 6.186 MB / 0.5866 GB, free: 20.23 MB / 378.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.7724, allocations: 4 kB / 0.5866 GB, free: 20.22 MB / 378.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.773, allocations: 140.3 kB / 0.5867 GB, free: 20.09 MB / 378.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.7749, allocations: 1.175 MB / 0.5879 GB, free: 18.9 MB / 378.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-05/0.775, allocations: 8 kB / 0.5879 GB, free: 18.89 MB / 378.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/0.7875, allocations: 14.59 MB / 0.6021 GB, free: 3.734 MB / 378.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/0.7876, allocations: 11.94 kB / 0.6021 GB, free: 3.723 MB / 378.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005383/0.793, allocations: 4.699 MB / 0.6067 GB, free: 14.81 MB / 394.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.7941, allocations: 0.5335 MB / 0.6073 GB, free: 14.26 MB / 394.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/0.7944, allocations: 8 kB / 0.6073 GB, free: 14.25 MB / 394.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.7954, allocations: 75.94 kB / 0.6073 GB, free: 14.18 MB / 394.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000579/0.796, allocations: 284.8 kB / 0.6076 GB, free: 13.9 MB / 394.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.7961, allocations: 44 kB / 0.6076 GB, free: 13.86 MB / 394.9 MB Notification: Performance of sorting global known variables: time 0.001594/0.7977, allocations: 1.111 MB / 0.6087 GB, free: 12.75 MB / 394.9 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7977, allocations: 0 / 0.6087 GB, free: 12.75 MB / 394.9 MB Notification: Performance of remove unused functions: time 0.00265/0.8004, allocations: 0.705 MB / 0.6094 GB, free: 12.04 MB / 394.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 45 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],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,inverter.andCondition_p[1].y,electronicCommutator.fire_p[1],inverter.andCondition_p[2].y,electronicCommutator.fire_p[2],inverter.andCondition_p[3].y,electronicCommutator.fire_p[3],inverter.andCondition_p[4].y,electronicCommutator.fire_p[4],inverter.andCondition_p[5].y,electronicCommutator.fire_p[5],inverter.andCondition_n[1].y,electronicCommutator.fire_n[1],inverter.andCondition_n[2].y,electronicCommutator.fire_n[2],inverter.andCondition_n[3].y,electronicCommutator.fire_n[3],inverter.andCondition_n[4].y,electronicCommutator.fire_n[4],inverter.andCondition_n[5].y,electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 84 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 12,4 12,4 12,4 12,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.006744/0.8071, allocations: 6.634 MB / 0.6159 GB, free: 5.23 MB / 394.9 MB Notification: Performance of simCode: created initialization part: time 0.004757/0.8119, allocations: 3.251 MB / 0.6191 GB, free: 1.934 MB / 394.9 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.812, allocations: 4 kB / 0.6191 GB, free: 1.93 MB / 394.9 MB Notification: Performance of simCode: created simulation system equations: time 0.003748/0.8157, allocations: 2.647 MB / 0.6217 GB, free: 15.23 MB / 410.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.8182, allocations: 497.6 kB / 0.6221 GB, free: 14.76 MB / 410.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.8302, allocations: 5.271 MB / 0.6273 GB, free: 9.383 MB / 410.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.8324, allocations: 2.217 MB / 0.6294 GB, free: 7.129 MB / 410.9 MB Notification: Performance of simCode: alias equations: time 0.001492/0.8339, allocations: 460.4 kB / 0.6299 GB, free: 6.676 MB / 410.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.8351, allocations: 0.8742 MB / 0.6307 GB, free: 5.801 MB / 410.9 MB Notification: Performance of SimCode: time 8.32e-07/0.8351, allocations: 0 / 0.6307 GB, free: 5.801 MB / 410.9 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2956/1.131, allocations: 56.72 MB / 0.6861 GB, free: 108.4 MB / 426.9 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/1.131, allocations: 100.5 kB / 0.6862 GB, free: 108.3 MB / 426.9 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.392/4.523, allocations: 0 / 0.6862 GB, free: 108.3 MB / 426.9 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoBLDCVoltages_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoBLDCVoltages.fmu > BLDC_BLDC.Examples.DemoBLDCVoltages.pipe 2>&1)