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.001407/0.001407, allocations: 176.1 kB / 17.4 MB, free: 4.297 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.565/1.565, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0007154/0.0007153, allocations: 85.05 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1667/0.1667, allocations: 38.08 MB / 358.3 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.0003749, allocations: 16 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3137, allocations: 56.31 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1711/0.4849, allocations: 118.3 MB / 0.5858 GB, free: 15.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.4851, allocations: 99.81 kB / 0.5859 GB, free: 15.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08597/0.5711, allocations: 31.15 MB / 0.6163 GB, free: 392 kB / 442.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5712, allocations: 0 / 0.6163 GB, free: 392 kB / 442.7 MB Notification: Performance of Transformations before backend: time 9.691e-05/0.5713, allocations: 20 kB / 0.6163 GB, free: 372 kB / 442.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.003322/0.5746, allocations: 1.251 MB / 0.6175 GB, free: 15.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.5747, allocations: 12.03 kB / 0.6175 GB, free: 15.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006723/0.5754, allocations: 131.5 kB / 0.6177 GB, free: 14.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/0.5776, allocations: 0.9105 MB / 0.6186 GB, free: 13.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-05/0.5776, allocations: 66.38 kB / 0.6186 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002765/0.5779, allocations: 92.47 kB / 0.6187 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.5801, allocations: 1.168 MB / 0.6198 GB, free: 12.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.561e-05/0.5802, allocations: 7.938 kB / 0.6199 GB, free: 12.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/0.5803, allocations: 36 kB / 0.6199 GB, free: 12.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001145/0.5804, allocations: 57.97 kB / 0.6199 GB, free: 12.47 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0018/0.5822, allocations: 0.9368 MB / 0.6209 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006585/0.5888, allocations: 4.648 MB / 0.6254 GB, free: 6.652 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.5899, allocations: 0.6227 MB / 0.626 GB, free: 6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000638/0.5905, allocations: 380.1 kB / 0.6264 GB, free: 5.621 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.5906, allocations: 12.56 kB / 0.6264 GB, free: 5.609 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.5906, allocations: 43.06 kB / 0.6264 GB, free: 5.555 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 2.905e-06/0.5906, allocations: 0 / 0.6264 GB, free: 5.555 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.005467/0.5961, allocations: 2.619 MB / 0.629 GB, free: 2.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.5962, allocations: 141.1 kB / 0.6291 GB, free: 2.652 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009536/0.5972, allocations: 0.6645 MB / 0.6298 GB, free: 1.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.5973, allocations: 37.64 kB / 0.6298 GB, free: 1.938 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.5976, allocations: 483 kB / 0.6303 GB, free: 1.457 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.5978, allocations: 220.8 kB / 0.6305 GB, free: 1.238 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.5979, allocations: 16.03 kB / 0.6305 GB, free: 1.223 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.5981, allocations: 390.7 kB / 0.6309 GB, free: 0.832 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005005/0.5986, allocations: 281.8 kB / 0.6311 GB, free: 0.5547 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.5993, allocations: 0.5198 MB / 0.6316 GB, free: 15.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/0.6027, allocations: 1.561 MB / 0.6332 GB, free: 14.25 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.6027, allocations: 0 / 0.6332 GB, free: 14.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002886/0.6056, allocations: 1.538 MB / 0.6347 GB, free: 12.65 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.6058, allocations: 311.6 kB / 0.635 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.6058, allocations: 8 kB / 0.635 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.6074, allocations: 0.4928 MB / 0.6354 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.6079, allocations: 143.7 kB / 0.6356 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00995/0.6179, allocations: 7.778 MB / 0.6432 GB, free: 3.387 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007064/0.6186, allocations: 47.97 kB / 0.6432 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.6188, allocations: 35.94 kB / 0.6433 GB, free: 3.305 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.6188, allocations: 4 kB / 0.6433 GB, free: 3.301 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002841/0.6216, allocations: 1.333 MB / 0.6446 GB, free: 1.918 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.6217, allocations: 8 kB / 0.6446 GB, free: 1.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.6232, allocations: 454.5 kB / 0.645 GB, free: 1.457 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.6237, allocations: 139.8 kB / 0.6451 GB, free: 1.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2655/0.8893, allocations: 7.476 MB / 0.6524 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007371/0.8901, allocations: 37.41 kB / 0.6525 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.458e-05/0.8901, allocations: 36.95 kB / 0.6525 GB, free: 128.7 MB / 474.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 () * Number of clocked 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.0007421/0.8909, allocations: 401.8 kB / 0.6529 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.8911, allocations: 82.84 kB / 0.653 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.8927, allocations: 0.8643 MB / 0.6538 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.8927, allocations: 7 kB / 0.6538 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.8927, allocations: 1.875 kB / 0.6538 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.8928, allocations: 11.66 kB / 0.6538 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.8957, allocations: 1.87 MB / 0.6557 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.8957, allocations: 2.625 kB / 0.6557 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006996/0.8964, allocations: 138.3 kB / 0.6558 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001626/0.8966, allocations: 61.41 kB / 0.6559 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/0.8967, allocations: 19.27 kB / 0.6559 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.8982, allocations: 2.754 MB / 0.6586 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.8983, allocations: 2.266 kB / 0.6586 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.9005, allocations: 1.348 MB / 0.6599 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.9008, allocations: 208.7 kB / 0.6601 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.253e-05/0.9009, allocations: 18.06 kB / 0.6601 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.9013, allocations: 27.72 kB / 0.6601 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.9015, allocations: 47.73 kB / 0.6602 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.9015, allocations: 17.59 kB / 0.6602 GB, free: 124.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007112/0.9022, allocations: 462 kB / 0.6606 GB, free: 124.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.91e-07/0.9023, allocations: 5 kB / 0.6606 GB, free: 124.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001957/0.9042, allocations: 404.5 kB / 0.661 GB, free: 124.7 MB / 474.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 () * Number of clocked 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.0003284/0.9046, allocations: 173 kB / 0.6612 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.9085, allocations: 2.235 MB / 0.6634 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.9085, allocations: 1.062 kB / 0.6634 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008156/0.9093, allocations: 0.56 MB / 0.6639 GB, free: 123.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.9106, allocations: 210.4 kB / 0.6641 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/0.9152, allocations: 2.579 MB / 0.6666 GB, free: 122.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009178/0.9161, allocations: 1.12 MB / 0.6677 GB, free: 121.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008645/0.917, allocations: 203.6 kB / 0.6679 GB, free: 121.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.9172, allocations: 56.56 kB / 0.668 GB, free: 121.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9172, allocations: 0 / 0.668 GB, free: 121.8 MB / 474.7 MB Notification: Performance of Templates: time 0.02759/0.9448, allocations: 16.15 MB / 0.6837 GB, free: 121 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/jenkins1/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