Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009804/0.0009805, allocations: 179.5 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007658/0.0007658, allocations: 84.2 kB / 270.8 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1598/0.1598, allocations: 38.07 MB / 357.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.0003011, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2626, allocations: 56.32 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.3972, allocations: 112.8 MB / 0.5793 GB, free: 5.547 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.3975, allocations: 95.95 kB / 0.5794 GB, free: 5.453 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06659/0.4641, allocations: 26.03 MB / 0.6048 GB, free: 11.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.4642, allocations: 0 / 0.6048 GB, free: 11.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.301e-05/0.4642, allocations: 16 kB / 0.6049 GB, free: 11.07 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00188/0.4661, allocations: 1.029 MB / 0.6059 GB, free: 9.988 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4662, allocations: 8.031 kB / 0.6059 GB, free: 9.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.4663, allocations: 122.5 kB / 0.606 GB, free: 9.852 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003909/0.4667, allocations: 107 kB / 0.6061 GB, free: 9.746 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.4684, allocations: 0.8572 MB / 0.6069 GB, free: 8.844 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.732e-05/0.4685, allocations: 83.7 kB / 0.607 GB, free: 8.758 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.4686, allocations: 71.89 kB / 0.6071 GB, free: 8.688 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.4701, allocations: 0.9602 MB / 0.608 GB, free: 7.668 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.4701, allocations: 4 kB / 0.608 GB, free: 7.664 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.4702, allocations: 24 kB / 0.608 GB, free: 7.641 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.129e-05/0.4703, allocations: 57.28 kB / 0.6081 GB, free: 7.586 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.4715, allocations: 0.778 MB / 0.6089 GB, free: 6.809 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.4761, allocations: 3.848 MB / 0.6126 GB, free: 2.742 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.4768, allocations: 436.8 kB / 0.613 GB, free: 2.289 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.4769, allocations: 8.656 kB / 0.613 GB, free: 2.281 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.4769, allocations: 46.48 kB / 0.6131 GB, free: 2.227 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 4.108e-06/0.4769, allocations: 0 / 0.6131 GB, free: 2.227 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01089/0.4878, allocations: 4.039 MB / 0.617 GB, free: 13.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.4879, allocations: 119.2 kB / 0.6171 GB, free: 13.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005626/0.4885, allocations: 457.8 kB / 0.6176 GB, free: 13.39 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.4885, allocations: 33.7 kB / 0.6176 GB, free: 13.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.4888, allocations: 391.1 kB / 0.618 GB, free: 12.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.489, allocations: 193.2 kB / 0.6182 GB, free: 12.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.489, allocations: 12 kB / 0.6182 GB, free: 12.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.4892, allocations: 374.8 kB / 0.6185 GB, free: 12.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/0.4896, allocations: 281.8 kB / 0.6188 GB, free: 12.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.4902, allocations: 0.5072 MB / 0.6193 GB, free: 11.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.4907, allocations: 372.6 kB / 0.6197 GB, free: 11.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.4907, allocations: 7.938 kB / 0.6197 GB, free: 11.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003345/0.4941, allocations: 1.568 MB / 0.6212 GB, free: 9.484 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.4941, allocations: 8 kB / 0.6212 GB, free: 9.477 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.4941, allocations: 11.94 kB / 0.6212 GB, free: 9.465 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.4958, allocations: 492 kB / 0.6217 GB, free: 8.969 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.4962, allocations: 111.8 kB / 0.6218 GB, free: 8.859 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.5064, allocations: 10.11 MB / 0.6317 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006409/0.5071, allocations: 35.89 kB / 0.6317 GB, free: 14.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.5071, allocations: 28 kB / 0.6317 GB, free: 14 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004692/0.5076, allocations: 309.6 kB / 0.632 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.5077, allocations: 63.25 kB / 0.6321 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.5108, allocations: 1.426 MB / 0.6335 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/0.5108, allocations: 12 kB / 0.6335 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.5109, allocations: 4 kB / 0.6335 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.5109, allocations: 3.984 kB / 0.6335 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.5154, allocations: 2.35 MB / 0.6358 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5154, allocations: 0 / 0.6358 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003193/0.5158, allocations: 56.06 kB / 0.6358 GB, free: 9.562 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.5173, allocations: 484 kB / 0.6363 GB, free: 9.074 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.121e-05/0.5173, allocations: 12 kB / 0.6363 GB, free: 9.062 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1958/0.7131, allocations: 9.846 MB / 0.6459 GB, free: 134.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7131, allocations: 1.25 kB / 0.6459 GB, free: 134.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.7169, allocations: 2.042 MB / 0.6479 GB, free: 134.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/0.7172, allocations: 189.2 kB / 0.6481 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/0.7173, allocations: 14.3 kB / 0.6481 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.7177, allocations: 21.97 kB / 0.6481 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.7179, allocations: 60.75 kB / 0.6482 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.7179, allocations: 15.55 kB / 0.6482 GB, free: 134.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004636/0.7184, allocations: 354 kB / 0.6485 GB, free: 134 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7184, allocations: 1.375 kB / 0.6485 GB, free: 134 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00111/0.7195, allocations: 240 kB / 0.6488 GB, free: 134 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.004008/0.7235, allocations: 2.971 MB / 0.6517 GB, free: 132.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002467/0.726, allocations: 1.486 MB / 0.6531 GB, free: 131.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.726, allocations: 0 / 0.6531 GB, free: 131.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.7278, allocations: 1.123 MB / 0.6542 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.7286, allocations: 162.1 kB / 0.6544 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009337/0.7379, allocations: 10.17 MB / 0.6643 GB, free: 124.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007148/0.7387, allocations: 1.079 MB / 0.6654 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004862/0.7392, allocations: 100.4 kB / 0.6655 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002906/0.7395, allocations: 252.7 kB / 0.6657 GB, free: 124 MB / 474.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7395, allocations: 0 / 0.6657 GB, free: 124 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.7806, allocations: 20.33 MB / 0.6856 GB, free: 122.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.7809, allocations: 215.7 kB / 0.6858 GB, free: 122.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/3.106, allocations: 0 / 0.6858 GB, free: 122.5 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat does not exist to compare? outputFormat=mat