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.001146/0.001146, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008015/0.0008013, allocations: 81.22 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1735/0.1735, allocations: 38 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.849e-05/1.866e-05, allocations: 4 kB / 410.7 MB, free: 46.83 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 56.32 MB / 467 MB, free: 6.449 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4072/0.5186, allocations: 112.1 MB / 0.5655 GB, free: 14.75 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5189, allocations: 91.95 kB / 0.5656 GB, free: 14.66 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06789/0.5868, allocations: 25.75 MB / 0.5907 GB, free: 4.594 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5868, allocations: 0 / 0.5907 GB, free: 4.594 MB / 427.1 MB Notification: Performance of Transformations before backend: time 4.658e-05/0.5869, allocations: 20 kB / 0.5907 GB, free: 4.574 MB / 427.1 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.001783/0.5887, allocations: 0.9624 MB / 0.5917 GB, free: 3.562 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.5887, allocations: 8.031 kB / 0.5917 GB, free: 3.555 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004091/0.5891, allocations: 106.9 kB / 0.5918 GB, free: 3.449 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.5908, allocations: 0.8401 MB / 0.5926 GB, free: 2.566 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-05/0.5909, allocations: 63.69 kB / 0.5927 GB, free: 2.496 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-05/0.591, allocations: 36 kB / 0.5927 GB, free: 2.461 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001084/0.5921, allocations: 0.6833 MB / 0.5934 GB, free: 1.777 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.5933, allocations: 0.8472 MB / 0.5942 GB, free: 0.875 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.5933, allocations: 7.938 kB / 0.5942 GB, free: 0.8672 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.689e-05/0.5934, allocations: 4 kB / 0.5942 GB, free: 0.8633 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.776e-05/0.5935, allocations: 57.28 kB / 0.5943 GB, free: 0.8086 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or 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.00429/0.5978, allocations: 3.622 MB / 0.5978 GB, free: 13 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/0.5983, allocations: 396.3 kB / 0.5982 GB, free: 12.58 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003961/0.5988, allocations: 260.9 kB / 0.5984 GB, free: 12.32 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.5988, allocations: 4 kB / 0.5984 GB, free: 12.32 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.5988, allocations: 42.36 kB / 0.5985 GB, free: 12.27 MB / 443.1 MB Notification: Performance of pre-optimization done (n=37): time 2.365e-06/0.5988, allocations: 0 / 0.5985 GB, free: 12.27 MB / 443.1 MB Notification: Performance of matching and sorting (n=55): time 0.007503/0.6064, allocations: 3.204 MB / 0.6016 GB, free: 8.891 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.6065, allocations: 111.3 kB / 0.6017 GB, free: 8.758 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004808/0.6069, allocations: 373 kB / 0.6021 GB, free: 8.391 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.939e-05/0.607, allocations: 25.7 kB / 0.6021 GB, free: 8.359 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.6072, allocations: 398.8 kB / 0.6025 GB, free: 7.961 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.6074, allocations: 181.3 kB / 0.6026 GB, free: 7.781 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.241e-05/0.6074, allocations: 0 / 0.6026 GB, free: 7.781 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.6076, allocations: 366.8 kB / 0.603 GB, free: 7.414 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.608, allocations: 257.5 kB / 0.6032 GB, free: 7.164 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.6085, allocations: 496.6 kB / 0.6037 GB, free: 6.574 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.609, allocations: 352.9 kB / 0.604 GB, free: 6.23 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.609, allocations: 4 kB / 0.604 GB, free: 6.227 MB / 443.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003027/0.612, allocations: 1.471 MB / 0.6055 GB, free: 4.676 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.6121, allocations: 11.91 kB / 0.6055 GB, free: 4.664 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.6121, allocations: 15.98 kB / 0.6055 GB, free: 4.648 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.6137, allocations: 500 kB / 0.606 GB, free: 4.145 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004191/0.6141, allocations: 107.8 kB / 0.6061 GB, free: 4.039 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.6243, allocations: 9.536 MB / 0.6154 GB, free: 9.914 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005919/0.6249, allocations: 19.89 kB / 0.6154 GB, free: 9.895 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.733e-05/0.625, allocations: 35.98 kB / 0.6154 GB, free: 9.859 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: machine.motor.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] machine.inverter.Vloss:DUMMY_STATE(unit = "V" nominal = 1000.0 protected = true ) type: Real machine.inverter.vPhasor[2]:DUMMY_STATE() "desired {abs(v), phase(v)}" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete 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%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {3 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002283/0.6252, allocations: 139.3 kB / 0.6156 GB, free: 9.719 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002806/0.6281, allocations: 1.295 MB / 0.6168 GB, free: 8.344 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.6282, allocations: 55.34 kB / 0.6169 GB, free: 8.289 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.6311, allocations: 1.369 MB / 0.6182 GB, free: 6.84 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.6311, allocations: 8 kB / 0.6182 GB, free: 6.832 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.6311, allocations: 7.938 kB / 0.6182 GB, free: 6.824 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6311, allocations: 3.984 kB / 0.6183 GB, free: 6.82 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004017/0.6351, allocations: 2.188 MB / 0.6204 GB, free: 4.512 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.6352, allocations: 4 kB / 0.6204 GB, free: 4.508 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.6355, allocations: 47.97 kB / 0.6204 GB, free: 4.461 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.637, allocations: 487 kB / 0.6209 GB, free: 3.973 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.637, allocations: 7.938 kB / 0.6209 GB, free: 3.965 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00907/0.6461, allocations: 9.286 MB / 0.63 GB, free: 10.1 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.6461, allocations: 0 / 0.63 GB, free: 10.1 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/0.6495, allocations: 1.963 MB / 0.6319 GB, free: 8.004 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.6498, allocations: 188.4 kB / 0.6321 GB, free: 7.801 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/0.6499, allocations: 4 kB / 0.6321 GB, free: 7.797 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.6502, allocations: 7.984 kB / 0.6321 GB, free: 7.789 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.6504, allocations: 64.5 kB / 0.6321 GB, free: 7.727 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.6504, allocations: 16 kB / 0.6322 GB, free: 7.711 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0003018/0.6507, allocations: 278.9 kB / 0.6324 GB, free: 7.441 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6507, allocations: 0 / 0.6324 GB, free: 7.441 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.0009897/0.6517, allocations: 208 kB / 0.6326 GB, free: 7.238 MB / 475.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * 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%) 2,(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.003677/0.6554, allocations: 2.896 MB / 0.6355 GB, free: 4.211 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.6577, allocations: 1.376 MB / 0.6368 GB, free: 2.785 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.6577, allocations: 0 / 0.6368 GB, free: 2.785 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.6592, allocations: 1.047 MB / 0.6378 GB, free: 1.688 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000734/0.66, allocations: 122.1 kB / 0.6379 GB, free: 1.566 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.6624, allocations: 1.429 MB / 0.6393 GB, free: 72 kB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2288/0.8913, allocations: 1.069 MB / 0.6404 GB, free: 137.6 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.8918, allocations: 99.2 kB / 0.6405 GB, free: 137.6 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.8922, allocations: 255.2 kB / 0.6407 GB, free: 137.6 MB / 475.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8922, allocations: 0 / 0.6407 GB, free: 137.6 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04647/0.9387, allocations: 17.72 MB / 0.658 GB, free: 137 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/0.9388, allocations: 157.1 kB / 0.6582 GB, free: 136.8 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/3.402, allocations: 0 / 0.6582 GB, free: 136.8 MB / 475.1 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