Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_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.00225/0.00225, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 213.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 86.7 kB / 261.8 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2619/0.2619, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.807e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5072/0.6162, allocations: 112 MB / 0.5648 GB, free: 15.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.6166, allocations: 102.5 kB / 0.5649 GB, free: 15.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.116/0.7326, allocations: 25.73 MB / 0.59 GB, free: 9.781 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7327, allocations: 0 / 0.59 GB, free: 9.781 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.116e-05/0.7328, allocations: 23.94 kB / 0.59 GB, free: 9.758 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.003295/0.7361, allocations: 0.9642 MB / 0.591 GB, free: 8.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.7362, allocations: 12.03 kB / 0.591 GB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008901/0.7371, allocations: 106.9 kB / 0.5911 GB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.7403, allocations: 0.8389 MB / 0.5919 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.7405, allocations: 58.77 kB / 0.592 GB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.7408, allocations: 40 kB / 0.592 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002065/0.7429, allocations: 0.6812 MB / 0.5927 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.745, allocations: 0.847 MB / 0.5935 GB, free: 6.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.7451, allocations: 3.5 kB / 0.5935 GB, free: 6.785 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.446e-05/0.7452, allocations: 3.984 kB / 0.5935 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/0.7454, allocations: 48.05 kB / 0.5935 GB, free: 6.738 MB / 394.7 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.008284/0.7537, allocations: 3.632 MB / 0.5971 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.7548, allocations: 395.5 kB / 0.5975 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006616/0.7555, allocations: 252.5 kB / 0.5977 GB, free: 3.102 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.609e-05/0.7555, allocations: 8 kB / 0.5977 GB, free: 3.094 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.7556, allocations: 46.03 kB / 0.5978 GB, free: 3.043 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.326e-06/0.7556, allocations: 0 / 0.5978 GB, free: 3.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=55): time 0.01387/0.7695, allocations: 3.207 MB / 0.6009 GB, free: 292 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.447e-05/0.7696, allocations: 111.2 kB / 0.601 GB, free: 156 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007528/0.7704, allocations: 366.8 kB / 0.6013 GB, free: 15.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.7705, allocations: 37.67 kB / 0.6014 GB, free: 15.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.7709, allocations: 443.4 kB / 0.6018 GB, free: 15.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.7712, allocations: 182.6 kB / 0.602 GB, free: 15.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.094e-05/0.7713, allocations: 0 / 0.602 GB, free: 15.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.7715, allocations: 337.3 kB / 0.6023 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006547/0.7722, allocations: 258.7 kB / 0.6025 GB, free: 14.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008263/0.773, allocations: 491.2 kB / 0.603 GB, free: 14.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000792/0.7738, allocations: 351.8 kB / 0.6033 GB, free: 14.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.7738, allocations: 4 kB / 0.6033 GB, free: 14.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005526/0.7794, allocations: 1.456 MB / 0.6048 GB, free: 12.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.7795, allocations: 8 kB / 0.6048 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.7795, allocations: 8 kB / 0.6048 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002979/0.7825, allocations: 486.3 kB / 0.6053 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008532/0.7834, allocations: 107.1 kB / 0.6054 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01733/0.8007, allocations: 9.551 MB / 0.6147 GB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009155/0.8017, allocations: 12 kB / 0.6147 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.329e-05/0.8018, allocations: 40.05 kB / 0.6147 GB, free: 2.969 MB / 410.7 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.0003476/0.8022, allocations: 130 kB / 0.6149 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005254/0.8075, allocations: 1.299 MB / 0.6161 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.8078, allocations: 59.25 kB / 0.6162 GB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005338/0.8131, allocations: 1.36 MB / 0.6175 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.8132, allocations: 8 kB / 0.6175 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.8133, allocations: 4 kB / 0.6175 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.43e-05/0.8133, allocations: 11.92 kB / 0.6175 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007417/0.8207, allocations: 2.184 MB / 0.6197 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.8208, allocations: 4 kB / 0.6197 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006145/0.8214, allocations: 51.91 kB / 0.6197 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002789/0.8242, allocations: 483.7 kB / 0.6202 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.8244, allocations: 12 kB / 0.6202 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/0.8408, allocations: 9.287 MB / 0.6293 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.068e-06/0.8409, allocations: 4 kB / 0.6293 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006259/0.8472, allocations: 1.959 MB / 0.6312 GB, free: 1.113 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004981/0.8477, allocations: 184.4 kB / 0.6314 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.8478, allocations: 0 / 0.6314 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.8485, allocations: 11.98 kB / 0.6314 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.8488, allocations: 60.38 kB / 0.6314 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.8489, allocations: 19.98 kB / 0.6314 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005301/0.8494, allocations: 279 kB / 0.6317 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8494, allocations: 3.938 kB / 0.6317 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001793/0.8512, allocations: 212 kB / 0.6319 GB, free: 352 kB / 426.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 () * 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.00692/0.8582, allocations: 2.899 MB / 0.6347 GB, free: 13.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004006/0.8623, allocations: 1.381 MB / 0.6361 GB, free: 11.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.8623, allocations: 4 kB / 0.6361 GB, free: 11.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002911/0.8652, allocations: 1.046 MB / 0.6371 GB, free: 10.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.8665, allocations: 106.3 kB / 0.6372 GB, free: 10.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/0.8712, allocations: 1.49 MB / 0.6387 GB, free: 9.113 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.8723, allocations: 1.068 MB / 0.6397 GB, free: 8.016 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000586/0.8729, allocations: 259.3 kB / 0.64 GB, free: 7.762 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/0.8729, allocations: 0 / 0.64 GB, free: 7.762 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.16/4.033, allocations: 29.22 MB / 0.6685 GB, free: 10.5 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)