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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 183 kB / 8.136 MB, free: 2.215 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.128/1.128, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008618/0.0008618, allocations: 83.7 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2132/0.2132, allocations: 37.97 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.051e-06/6.082e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08566, allocations: 56.32 MB / 466.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2911/0.3768, allocations: 112 MB / 0.5648 GB, free: 14.52 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.3771, allocations: 95.94 kB / 0.5649 GB, free: 14.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.0711/0.4482, allocations: 25.49 MB / 0.5898 GB, free: 4.613 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.474e-05/0.4483, allocations: 20 kB / 0.5898 GB, free: 4.594 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.002005/0.4503, allocations: 0.9546 MB / 0.5907 GB, free: 3.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.4504, allocations: 12.03 kB / 0.5908 GB, free: 3.578 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.4509, allocations: 110.9 kB / 0.5909 GB, free: 3.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.4529, allocations: 0.8479 MB / 0.5917 GB, free: 2.582 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-05/0.453, allocations: 59.7 kB / 0.5917 GB, free: 2.516 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.4531, allocations: 40 kB / 0.5918 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001277/0.4544, allocations: 0.7028 MB / 0.5925 GB, free: 1.773 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.4557, allocations: 0.855 MB / 0.5933 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.4558, allocations: 4 kB / 0.5933 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.4558, allocations: 0 / 0.5933 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.456, allocations: 61.27 kB / 0.5934 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005252/0.4612, allocations: 3.654 MB / 0.5969 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.4617, allocations: 302.1 kB / 0.5972 GB, free: 12.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004357/0.4621, allocations: 263.1 kB / 0.5975 GB, free: 12.37 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.4622, allocations: 4 kB / 0.5975 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.4622, allocations: 42.42 kB / 0.5975 GB, free: 12.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 2.635e-06/0.4622, allocations: 0 / 0.5975 GB, free: 12.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.008432/0.4707, allocations: 3.251 MB / 0.6007 GB, free: 8.891 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.4707, allocations: 115.2 kB / 0.6008 GB, free: 8.754 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.4712, allocations: 365.1 kB / 0.6011 GB, free: 8.395 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.4713, allocations: 25.7 kB / 0.6012 GB, free: 8.363 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.4715, allocations: 350.8 kB / 0.6015 GB, free: 8.012 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.4716, allocations: 181.3 kB / 0.6017 GB, free: 7.832 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.4717, allocations: 4 kB / 0.6017 GB, free: 7.828 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4718, allocations: 366.7 kB / 0.602 GB, free: 7.461 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.4722, allocations: 269.5 kB / 0.6023 GB, free: 7.199 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005285/0.4728, allocations: 496.6 kB / 0.6028 GB, free: 6.609 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.4733, allocations: 357 kB / 0.6031 GB, free: 6.266 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4733, allocations: 4 kB / 0.6031 GB, free: 6.262 MB / 442.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003413/0.4767, allocations: 1.497 MB / 0.6046 GB, free: 4.684 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.4768, allocations: 4 kB / 0.6046 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.4768, allocations: 11.98 kB / 0.6046 GB, free: 4.668 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001766/0.4786, allocations: 0.5 MB / 0.6051 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.479, allocations: 111.8 kB / 0.6052 GB, free: 4.043 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.4897, allocations: 9.226 MB / 0.6142 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.4904, allocations: 27.86 kB / 0.6142 GB, free: 10.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.4904, allocations: 36.06 kB / 0.6143 GB, free: 10.17 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.0002156/0.4907, allocations: 127.2 kB / 0.6144 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.4908, allocations: 63.45 kB / 0.6144 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.4941, allocations: 1.38 MB / 0.6158 GB, free: 8.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.4941, allocations: 8 kB / 0.6158 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.4941, allocations: 4 kB / 0.6158 GB, free: 8.508 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4941, allocations: 3.984 kB / 0.6158 GB, free: 8.504 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004422/0.4985, allocations: 2.22 MB / 0.618 GB, free: 6.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4986, allocations: 96 / 0.618 GB, free: 6.152 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/0.4989, allocations: 59.89 kB / 0.618 GB, free: 6.094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/0.5006, allocations: 491.8 kB / 0.6185 GB, free: 5.598 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.5006, allocations: 4 kB / 0.6185 GB, free: 5.594 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009979/0.5106, allocations: 9.041 MB / 0.6273 GB, free: 11.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5107, allocations: 3.938 kB / 0.6273 GB, free: 11.97 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003968/0.5146, allocations: 1.988 MB / 0.6293 GB, free: 9.848 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.515, allocations: 192.3 kB / 0.6295 GB, free: 9.641 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.175e-05/0.5151, allocations: 4 kB / 0.6295 GB, free: 9.637 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.5155, allocations: 12 kB / 0.6295 GB, free: 9.625 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.981e-05/0.5156, allocations: 36.44 kB / 0.6295 GB, free: 9.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.274e-05/0.5157, allocations: 16 kB / 0.6295 GB, free: 9.574 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0003917/0.5161, allocations: 271.2 kB / 0.6298 GB, free: 9.309 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001069/0.5171, allocations: 204.1 kB / 0.63 GB, free: 9.109 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.0002578/0.5174, allocations: 151.1 kB / 0.6301 GB, free: 8.953 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.5197, allocations: 1.318 MB / 0.6314 GB, free: 7.586 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5197, allocations: 4.125 kB / 0.6314 GB, free: 7.582 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.5213, allocations: 0.9673 MB / 0.6324 GB, free: 6.562 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.522, allocations: 106.2 kB / 0.6325 GB, free: 6.461 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.5246, allocations: 1.288 MB / 0.6337 GB, free: 5.125 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007469/0.5254, allocations: 1.085 MB / 0.6348 GB, free: 4.016 MB / 474.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5254, allocations: 0 / 0.6348 GB, free: 4.016 MB / 474.7 MB Notification: Performance of Templates: time 0.1406/0.666, allocations: 12.75 MB / 0.6472 GB, free: 191.2 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches