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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001651/0.00165, allocations: 185 kB / 7.802 MB, free: 2.488 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 1.687/1.687, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001251/0.001251, allocations: 88.38 kB / 261.4 MB, free: 13.62 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.3423/0.3423, allocations: 37.97 MB / 347.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.195e-06/8.326e-06, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09524, allocations: 56.31 MB / 465.6 MB, free: 6.852 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4513, allocations: 112 MB / 0.5641 GB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.4517, allocations: 91.95 kB / 0.5642 GB, free: 14.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1254/0.5771, allocations: 25.5 MB / 0.5891 GB, free: 4.906 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.975e-05/0.5772, allocations: 20 kB / 0.5891 GB, free: 4.887 MB / 426.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.003778/0.581, allocations: 0.9507 MB / 0.5901 GB, free: 3.887 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.5811, allocations: 8.031 kB / 0.5901 GB, free: 3.879 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.5823, allocations: 110.9 kB / 0.5902 GB, free: 3.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004354/0.5867, allocations: 0.8479 MB / 0.591 GB, free: 2.883 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002486/0.587, allocations: 67.69 kB / 0.5911 GB, free: 2.809 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003252/0.5874, allocations: 40 kB / 0.5911 GB, free: 2.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003683/0.5911, allocations: 0.6989 MB / 0.5918 GB, free: 2.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.5947, allocations: 0.8589 MB / 0.5926 GB, free: 1.156 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.968e-05/0.5948, allocations: 4 kB / 0.5926 GB, free: 1.152 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/0.5949, allocations: 0 / 0.5926 GB, free: 1.152 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002705/0.5952, allocations: 57.22 kB / 0.5927 GB, free: 1.094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.6067, allocations: 3.65 MB / 0.5963 GB, free: 13.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/0.6075, allocations: 295.4 kB / 0.5965 GB, free: 12.94 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007614/0.6083, allocations: 271.1 kB / 0.5968 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.6083, allocations: 11.97 kB / 0.5968 GB, free: 12.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.6084, allocations: 42.36 kB / 0.5968 GB, free: 12.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 3.016e-06/0.6084, allocations: 0 / 0.5968 GB, free: 12.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01575/0.6242, allocations: 3.247 MB / 0.6 GB, free: 9.184 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/0.6243, allocations: 107.2 kB / 0.6001 GB, free: 9.055 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00077/0.6251, allocations: 373 kB / 0.6005 GB, free: 8.688 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.6252, allocations: 25.7 kB / 0.6005 GB, free: 8.656 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.6255, allocations: 393.3 kB / 0.6009 GB, free: 8.266 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002765/0.6258, allocations: 181.3 kB / 0.601 GB, free: 8.086 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.6259, allocations: 0 / 0.601 GB, free: 8.086 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.6261, allocations: 342.7 kB / 0.6014 GB, free: 7.742 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/0.6268, allocations: 265.5 kB / 0.6016 GB, free: 7.484 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.6279, allocations: 0.4888 MB / 0.6021 GB, free: 6.891 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000972/0.6289, allocations: 361 kB / 0.6025 GB, free: 6.543 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.629, allocations: 0 / 0.6025 GB, free: 6.543 MB / 442.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00623/0.6352, allocations: 1.479 MB / 0.6039 GB, free: 4.984 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.6353, allocations: 4 kB / 0.6039 GB, free: 4.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/0.6353, allocations: 8 kB / 0.6039 GB, free: 4.973 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003153/0.6385, allocations: 0.4922 MB / 0.6044 GB, free: 4.465 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009078/0.6394, allocations: 107.8 kB / 0.6045 GB, free: 4.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0182/0.6576, allocations: 9.238 MB / 0.6135 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000789/0.6585, allocations: 15.94 kB / 0.6135 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.036e-05/0.6586, allocations: 31.98 kB / 0.6136 GB, free: 10.49 MB / 458.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.0002583/0.6588, allocations: 54.02 kB / 0.6136 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.6591, allocations: 55.47 kB / 0.6137 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005879/0.665, allocations: 1.395 MB / 0.615 GB, free: 8.902 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.665, allocations: 8 kB / 0.615 GB, free: 8.895 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.6651, allocations: 4 kB / 0.615 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.6651, allocations: 3.984 kB / 0.615 GB, free: 8.887 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007779/0.6729, allocations: 2.216 MB / 0.6172 GB, free: 6.539 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.6729, allocations: 0 / 0.6172 GB, free: 6.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006544/0.6736, allocations: 51.97 kB / 0.6173 GB, free: 6.488 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002967/0.6766, allocations: 487.9 kB / 0.6177 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.62e-05/0.6767, allocations: 7.984 kB / 0.6177 GB, free: 5.988 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01802/0.6947, allocations: 9.045 MB / 0.6266 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.6948, allocations: 0 / 0.6266 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006775/0.7016, allocations: 2 MB / 0.6285 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004716/0.7021, allocations: 184.3 kB / 0.6287 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.7022, allocations: 0 / 0.6287 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006799/0.7029, allocations: 11.98 kB / 0.6287 GB, free: 10.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.7031, allocations: 40.42 kB / 0.6287 GB, free: 9.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.094e-05/0.7031, allocations: 12 kB / 0.6287 GB, free: 9.969 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005307/0.7037, allocations: 279.2 kB / 0.629 GB, free: 9.695 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00139/0.7051, allocations: 199.9 kB / 0.6292 GB, free: 9.5 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 () * 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.0003494/0.7054, allocations: 162.7 kB / 0.6294 GB, free: 9.336 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00399/0.7095, allocations: 1.315 MB / 0.6306 GB, free: 7.973 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.7095, allocations: 0 / 0.6306 GB, free: 7.973 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002957/0.7125, allocations: 0.9713 MB / 0.6316 GB, free: 6.949 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.7137, allocations: 105.8 kB / 0.6317 GB, free: 6.848 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004586/0.7183, allocations: 1.344 MB / 0.633 GB, free: 5.449 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/0.7198, allocations: 1.108 MB / 0.6341 GB, free: 4.316 MB / 474.7 MB Notification: Performance of SimCode: time 1.342e-06/0.7198, allocations: 0 / 0.6341 GB, free: 4.316 MB / 474.7 MB Notification: Performance of Templates: time 0.2079/0.9277, allocations: 26.81 MB / 0.6603 GB, free: 189.6 MB / 474.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)