Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.000806/0.0008059, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2068/0.2068, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.603e-05/2.605e-05, allocations: 4 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1012, allocations: 56.32 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4068/0.508, allocations: 118.1 MB / 0.5783 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.5082, allocations: 91.77 kB / 0.5784 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08246/0.5907, allocations: 31.29 MB / 0.6089 GB, free: 6.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5908, allocations: 0 / 0.6089 GB, free: 6.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.794e-05/0.5908, allocations: 27.94 kB / 0.609 GB, free: 6.293 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002285/0.5931, allocations: 1.163 MB / 0.6101 GB, free: 5.145 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.5932, allocations: 8.031 kB / 0.6101 GB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004717/0.5937, allocations: 130.6 kB / 0.6102 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002113/0.5958, allocations: 0.9793 MB / 0.6112 GB, free: 4.203 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.5959, allocations: 67.98 kB / 0.6112 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.5961, allocations: 97.98 kB / 0.6113 GB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.5978, allocations: 1.128 MB / 0.6124 GB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.5978, allocations: 7.984 kB / 0.6125 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.437e-05/0.5979, allocations: 34 kB / 0.6125 GB, free: 3.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.598, allocations: 55.92 kB / 0.6125 GB, free: 3.184 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.5995, allocations: 0.8804 MB / 0.6134 GB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006099/0.6056, allocations: 4.649 MB / 0.6179 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009023/0.6065, allocations: 0.5637 MB / 0.6185 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/0.6071, allocations: 356.4 kB / 0.6188 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/0.6071, allocations: 16.5 kB / 0.6188 GB, free: 13.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.6072, allocations: 45.81 kB / 0.6189 GB, free: 13.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 3.015e-06/0.6072, allocations: 0 / 0.6189 GB, free: 13.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=62): time 0.003128/0.6103, allocations: 1.967 MB / 0.6208 GB, free: 12.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.6104, allocations: 141.1 kB / 0.6209 GB, free: 12.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006632/0.6111, allocations: 0.5729 MB / 0.6215 GB, free: 11.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/0.6111, allocations: 37.52 kB / 0.6215 GB, free: 11.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003646/0.6115, allocations: 490.1 kB / 0.622 GB, free: 11.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/0.6117, allocations: 220.7 kB / 0.6222 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.6118, allocations: 16.12 kB / 0.6222 GB, free: 11.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.612, allocations: 392.1 kB / 0.6226 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004896/0.6125, allocations: 254 kB / 0.6228 GB, free: 10.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006677/0.6132, allocations: 0.4925 MB / 0.6233 GB, free: 9.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002919/0.6161, allocations: 0.7879 MB / 0.6241 GB, free: 9.004 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.6161, allocations: 4 kB / 0.6241 GB, free: 9 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003253/0.6194, allocations: 1.436 MB / 0.6255 GB, free: 7.512 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00112/0.6205, allocations: 2.965 MB / 0.6284 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.6205, allocations: 11.98 kB / 0.6284 GB, free: 4.301 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.6221, allocations: 469.7 kB / 0.6289 GB, free: 3.836 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.6226, allocations: 131.8 kB / 0.629 GB, free: 3.707 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.6264, allocations: 4.077 MB / 0.633 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.6269, allocations: 51.98 kB / 0.633 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.627, allocations: 35.98 kB / 0.633 GB, free: 15.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/0.627, allocations: 6.5 kB / 0.6331 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002467/0.6295, allocations: 1.298 MB / 0.6343 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.6295, allocations: 11.94 kB / 0.6343 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001538/0.631, allocations: 458.7 kB / 0.6348 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.6315, allocations: 139.7 kB / 0.6349 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009006/0.6406, allocations: 7.462 MB / 0.6422 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.6411, allocations: 32.08 kB / 0.6422 GB, free: 5.375 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.6411, allocations: 39.98 kB / 0.6423 GB, free: 5.336 MB / 442.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 65 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002075/0.6414, allocations: 157.1 kB / 0.6424 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.6415, allocations: 86.95 kB / 0.6425 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.643, allocations: 0.8143 MB / 0.6433 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.643, allocations: 8 kB / 0.6433 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.643, allocations: 4 kB / 0.6433 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.659e-06/0.643, allocations: 3.984 kB / 0.6433 GB, free: 4.227 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002683/0.6457, allocations: 1.826 MB / 0.6451 GB, free: 2.297 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6457, allocations: 0 / 0.6451 GB, free: 2.297 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006733/0.6464, allocations: 135.9 kB / 0.6452 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001599/0.6466, allocations: 61.59 kB / 0.6453 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.359e-05/0.6466, allocations: 15.98 kB / 0.6453 GB, free: 2.082 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.6485, allocations: 2.747 MB / 0.648 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6485, allocations: 4 kB / 0.648 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.6503, allocations: 1.337 MB / 0.6493 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.6506, allocations: 200.2 kB / 0.6495 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.557e-05/0.6507, allocations: 12 kB / 0.6495 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004174/0.6511, allocations: 43.88 kB / 0.6495 GB, free: 13.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/0.6512, allocations: 44.45 kB / 0.6496 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.6513, allocations: 16 kB / 0.6496 GB, free: 13.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005298/0.6518, allocations: 455.1 kB / 0.65 GB, free: 12.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6518, allocations: 0 / 0.65 GB, free: 12.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001276/0.6531, allocations: 383.9 kB / 0.6504 GB, free: 12.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002689/0.6534, allocations: 166.9 kB / 0.6505 GB, free: 12.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003129/0.6565, allocations: 1.951 MB / 0.6524 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6565, allocations: 5.312 kB / 0.6525 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006626/0.6572, allocations: 0.5357 MB / 0.653 GB, free: 9.758 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/0.6581, allocations: 199 kB / 0.6532 GB, free: 9.562 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.6608, allocations: 1.662 MB / 0.6548 GB, free: 7.867 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.6615, allocations: 1.132 MB / 0.6559 GB, free: 6.703 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009001/0.6624, allocations: 278.4 kB / 0.6562 GB, free: 6.426 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.6626, allocations: 51.44 kB / 0.6562 GB, free: 6.375 MB / 458.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6626, allocations: 0 / 0.6562 GB, free: 6.375 MB / 458.7 MB Notification: Performance of Templates: time 0.0252/0.6878, allocations: 16.02 MB / 0.6719 GB, free: 6.355 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches