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.0009346/0.0009346, allocations: 176.6 kB / 8.35 MB, free: 0.7227 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.536/1.536, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009086/0.0009085, allocations: 88.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1675/0.1675, allocations: 37.98 MB / 348 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.568e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 56.33 MB / 466.9 MB, free: 6.555 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.5478, allocations: 117.4 MB / 0.5706 GB, free: 9.453 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5481, allocations: 91.95 kB / 0.5707 GB, free: 9.363 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08198/0.6301, allocations: 30.97 MB / 0.601 GB, free: 10.09 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6301, allocations: 0 / 0.601 GB, free: 10.09 MB / 443.1 MB Notification: Performance of Transformations before backend: time 6.595e-05/0.6302, allocations: 27.94 kB / 0.601 GB, free: 10.06 MB / 443.1 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.002211/0.6324, allocations: 1.162 MB / 0.6021 GB, free: 8.844 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.6325, allocations: 8.031 kB / 0.6021 GB, free: 8.836 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000502/0.633, allocations: 134.6 kB / 0.6023 GB, free: 8.703 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002333/0.6353, allocations: 0.9876 MB / 0.6032 GB, free: 7.676 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/0.6354, allocations: 28 kB / 0.6033 GB, free: 7.648 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.6356, allocations: 55.95 kB / 0.6033 GB, free: 7.594 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001483/0.6371, allocations: 0.8044 MB / 0.6041 GB, free: 6.789 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.6387, allocations: 1.004 MB / 0.6051 GB, free: 5.719 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.6387, allocations: 7.906 kB / 0.6051 GB, free: 5.711 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.385e-05/0.6388, allocations: 4 kB / 0.6051 GB, free: 5.707 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.6389, allocations: 65.91 kB / 0.6051 GB, free: 5.641 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005779/0.6447, allocations: 4.382 MB / 0.6094 GB, free: 1.055 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.6456, allocations: 0.5408 MB / 0.61 GB, free: 496 kB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.6461, allocations: 348.5 kB / 0.6103 GB, free: 136 kB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.14e-05/0.6462, allocations: 12.56 kB / 0.6103 GB, free: 124 kB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.6462, allocations: 43.11 kB / 0.6103 GB, free: 72 kB / 443.1 MB Notification: Performance of pre-optimization done (n=58): time 3.206e-06/0.6462, allocations: 0 / 0.6103 GB, free: 72 kB / 443.1 MB Notification: Performance of matching and sorting (n=62): time 0.002938/0.6492, allocations: 1.835 MB / 0.6121 GB, free: 14.15 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.6492, allocations: 137.1 kB / 0.6123 GB, free: 13.99 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.6498, allocations: 495.4 kB / 0.6127 GB, free: 13.5 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.6499, allocations: 25.7 kB / 0.6128 GB, free: 13.46 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.6502, allocations: 490.7 kB / 0.6132 GB, free: 12.98 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.6503, allocations: 208.9 kB / 0.6134 GB, free: 12.77 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.6504, allocations: 0 / 0.6134 GB, free: 12.77 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6505, allocations: 390.7 kB / 0.6138 GB, free: 12.38 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.6509, allocations: 238.5 kB / 0.614 GB, free: 12.14 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005024/0.6514, allocations: 497.7 kB / 0.6145 GB, free: 11.55 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00234/0.6538, allocations: 0.7712 MB / 0.6153 GB, free: 10.76 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.6538, allocations: 4 kB / 0.6153 GB, free: 10.75 MB / 459.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002604/0.6564, allocations: 1.347 MB / 0.6166 GB, free: 9.352 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001023/0.6574, allocations: 3.044 MB / 0.6195 GB, free: 6.066 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/0.6575, allocations: 8 kB / 0.6196 GB, free: 6.059 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.6591, allocations: 458.6 kB / 0.62 GB, free: 5.605 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005532/0.6597, allocations: 147.8 kB / 0.6201 GB, free: 5.461 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.6632, allocations: 3.995 MB / 0.624 GB, free: 1.207 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.6639, allocations: 23.98 kB / 0.6241 GB, free: 1.184 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.273e-05/0.664, allocations: 39.98 kB / 0.6241 GB, free: 1.145 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.664, allocations: 8.094 kB / 0.6241 GB, free: 1.137 MB / 459.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002369/0.6664, allocations: 1.193 MB / 0.6253 GB, free: 15.9 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.6664, allocations: 8 kB / 0.6253 GB, free: 15.89 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.6679, allocations: 442.5 kB / 0.6257 GB, free: 15.45 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.6684, allocations: 143.7 kB / 0.6258 GB, free: 15.31 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008403/0.6768, allocations: 7.138 MB / 0.6328 GB, free: 7.805 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007701/0.6776, allocations: 24.08 kB / 0.6328 GB, free: 7.781 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.935e-05/0.6777, allocations: 35.94 kB / 0.6329 GB, free: 7.746 MB / 475.1 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (69): * Single equations (assignments): 66 * 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.0003185/0.678, allocations: 141.8 kB / 0.633 GB, free: 7.602 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.6782, allocations: 75.06 kB / 0.6331 GB, free: 7.527 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001294/0.6795, allocations: 0.7555 MB / 0.6338 GB, free: 6.734 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.6795, allocations: 11.95 kB / 0.6338 GB, free: 6.723 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.6795, allocations: 0 / 0.6338 GB, free: 6.723 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.6795, allocations: 7.984 kB / 0.6338 GB, free: 6.715 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.6821, allocations: 1.658 MB / 0.6354 GB, free: 4.969 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.6821, allocations: 0 / 0.6354 GB, free: 4.969 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006867/0.6828, allocations: 139.7 kB / 0.6356 GB, free: 4.832 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001591/0.683, allocations: 49.77 kB / 0.6356 GB, free: 4.777 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.683, allocations: 15.98 kB / 0.6356 GB, free: 4.762 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.6847, allocations: 2.656 MB / 0.6382 GB, free: 1.875 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.6847, allocations: 3.969 kB / 0.6382 GB, free: 1.871 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.6863, allocations: 1.269 MB / 0.6395 GB, free: 0.5234 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.6867, allocations: 200.1 kB / 0.6397 GB, free: 316 kB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.451e-05/0.6868, allocations: 8 kB / 0.6397 GB, free: 308 kB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.6872, allocations: 19.98 kB / 0.6397 GB, free: 288 kB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.846e-05/0.6873, allocations: 40.5 kB / 0.6397 GB, free: 248 kB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.6873, allocations: 23.98 kB / 0.6398 GB, free: 224 kB / 475.1 MB Notification: Performance of sorting global known variables: time 0.2859/0.9732, allocations: 356.7 kB / 0.6401 GB, free: 134.1 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.032e-06/0.9732, allocations: 0 / 0.6401 GB, free: 134.1 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.002514/0.9757, allocations: 328.8 kB / 0.6404 GB, free: 134.1 MB / 475.1 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.0003344/0.9761, allocations: 159.9 kB / 0.6406 GB, free: 134 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.9798, allocations: 1.86 MB / 0.6424 GB, free: 133.5 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.9798, allocations: 0 / 0.6424 GB, free: 133.5 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006483/0.9805, allocations: 0.5151 MB / 0.6429 GB, free: 133.3 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.9815, allocations: 150.6 kB / 0.643 GB, free: 133.3 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.9846, allocations: 1.613 MB / 0.6446 GB, free: 132.9 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008359/0.9855, allocations: 1.134 MB / 0.6457 GB, free: 132.1 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0009975/0.9865, allocations: 242.1 kB / 0.6459 GB, free: 132.1 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.9866, allocations: 49.14 kB / 0.646 GB, free: 132.1 MB / 475.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9866, allocations: 1.188 kB / 0.646 GB, free: 132.1 MB / 475.1 MB Notification: Performance of Templates: time 0.0259/1.013, allocations: 13.63 MB / 0.6593 GB, free: 131.5 MB / 475.1 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