Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002045/0.002044, allocations: 180.9 kB / 8.012 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.181/2.181, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 90.64 kB / 261.8 MB, free: 1.664 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.257/0.257, allocations: 37.99 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.637e-05/2.647e-05, allocations: 7.984 kB / 409.9 MB, free: 35.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 56.33 MB / 466.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.6006, allocations: 112.1 MB / 0.5647 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.6009, allocations: 91.44 kB / 0.5648 GB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1147/0.7157, allocations: 25.75 MB / 0.5899 GB, free: 10.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.7157, allocations: 0 / 0.5899 GB, free: 10.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.045e-05/0.7158, allocations: 20 kB / 0.5899 GB, free: 10.09 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.003002/0.7188, allocations: 0.9581 MB / 0.5909 GB, free: 9.129 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.7189, allocations: 8.031 kB / 0.5909 GB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008473/0.7198, allocations: 103 kB / 0.591 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.7228, allocations: 0.8396 MB / 0.5918 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.723, allocations: 59.7 kB / 0.5919 GB, free: 8.266 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.7233, allocations: 40 kB / 0.5919 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001912/0.7252, allocations: 0.6833 MB / 0.5926 GB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.7272, allocations: 0.8474 MB / 0.5934 GB, free: 7.129 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/0.7273, allocations: 4 kB / 0.5934 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.166e-05/0.7274, allocations: 4 kB / 0.5934 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001803/0.7276, allocations: 56.22 kB / 0.5935 GB, free: 7.074 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.008074/0.7357, allocations: 3.62 MB / 0.597 GB, free: 3.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.7368, allocations: 400 kB / 0.5974 GB, free: 3.621 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006585/0.7374, allocations: 257.5 kB / 0.5976 GB, free: 3.438 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.7375, allocations: 4 kB / 0.5976 GB, free: 3.434 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.7376, allocations: 42.28 kB / 0.5977 GB, free: 3.387 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 6.812e-06/0.7376, allocations: 4 kB / 0.5977 GB, free: 3.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=55): time 0.01379/0.7514, allocations: 3.204 MB / 0.6008 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.7515, allocations: 115.2 kB / 0.6009 GB, free: 500 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000682/0.7522, allocations: 364.8 kB / 0.6013 GB, free: 208 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.7523, allocations: 25.7 kB / 0.6013 GB, free: 176 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/0.7527, allocations: 449.6 kB / 0.6017 GB, free: 15.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/0.7529, allocations: 179.2 kB / 0.6019 GB, free: 15.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.753, allocations: 0 / 0.6019 GB, free: 15.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.7532, allocations: 340.2 kB / 0.6022 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005964/0.7538, allocations: 256.5 kB / 0.6024 GB, free: 15.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007754/0.7546, allocations: 497.2 kB / 0.6029 GB, free: 14.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008094/0.7554, allocations: 352.8 kB / 0.6033 GB, free: 14.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.7554, allocations: 4 kB / 0.6033 GB, free: 14.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005322/0.7607, allocations: 1.449 MB / 0.6047 GB, free: 13.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.7608, allocations: 8 kB / 0.6047 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/0.7609, allocations: 8 kB / 0.6047 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002888/0.7638, allocations: 496.6 kB / 0.6052 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008243/0.7646, allocations: 110.2 kB / 0.6053 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.7808, allocations: 9.536 MB / 0.6146 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000843/0.7817, allocations: 20.05 kB / 0.6146 GB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-05/0.7818, allocations: 43.92 kB / 0.6146 GB, free: 3.102 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.0002798/0.7821, allocations: 124.8 kB / 0.6148 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.7823, allocations: 55.34 kB / 0.6148 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005076/0.7874, allocations: 1.359 MB / 0.6161 GB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.7874, allocations: 8 kB / 0.6161 GB, free: 1.473 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.7875, allocations: 4 kB / 0.6162 GB, free: 1.469 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.7875, allocations: 7.984 kB / 0.6162 GB, free: 1.461 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006955/0.7944, allocations: 2.195 MB / 0.6183 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.7945, allocations: 0 / 0.6183 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000575/0.7951, allocations: 63.98 kB / 0.6184 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002622/0.7977, allocations: 475.8 kB / 0.6188 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.7978, allocations: 0 / 0.6188 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/0.8151, allocations: 9.298 MB / 0.6279 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/0.8152, allocations: 4 kB / 0.6279 GB, free: 4.723 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008984/0.8242, allocations: 1.959 MB / 0.6298 GB, free: 2.629 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000621/0.8249, allocations: 180.4 kB / 0.63 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.8251, allocations: 8.062 kB / 0.63 GB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008874/0.826, allocations: 15.94 kB / 0.63 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/0.8263, allocations: 60.41 kB / 0.6301 GB, free: 2.352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.779e-05/0.8264, allocations: 16 kB / 0.6301 GB, free: 2.336 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006569/0.8271, allocations: 275 kB / 0.6303 GB, free: 2.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8271, allocations: 0 / 0.6303 GB, free: 2.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002263/0.8294, allocations: 212 kB / 0.6305 GB, free: 1.863 MB / 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.0004205/0.8298, allocations: 155 kB / 0.6307 GB, free: 1.699 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005158/0.835, allocations: 1.389 MB / 0.6321 GB, free: 268 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.835, allocations: 0 / 0.6321 GB, free: 268 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003881/0.8389, allocations: 1.042 MB / 0.6331 GB, free: 15.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.8406, allocations: 118.1 kB / 0.6332 GB, free: 15.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.8451, allocations: 1.301 MB / 0.6345 GB, free: 13.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.8465, allocations: 1.067 MB / 0.6355 GB, free: 12.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.8467, allocations: 39.44 kB / 0.6355 GB, free: 12.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.362e-06/0.8468, allocations: 0 / 0.6355 GB, free: 12.56 MB / 442.7 MB Notification: Performance of Templates: time 0.06391/0.9107, allocations: 25.39 MB / 0.6603 GB, free: 3.125 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)