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") [: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.001136/0.001136, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.277/1.277, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008817/0.0008816, allocations: 93.28 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 37.98 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.673e-06/6.692e-06, allocations: 4 kB / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08374/0.08376, allocations: 56.31 MB / 466.3 MB, free: 6.496 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2773/0.3611, allocations: 117.4 MB / 0.57 GB, free: 9.148 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.3615, allocations: 91.94 kB / 0.5701 GB, free: 9.059 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08381/0.4453, allocations: 30.75 MB / 0.6002 GB, free: 10 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.531e-05/0.4454, allocations: 24 kB / 0.6002 GB, free: 9.98 MB / 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.002222/0.4476, allocations: 1.166 MB / 0.6013 GB, free: 8.762 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.4477, allocations: 8.031 kB / 0.6013 GB, free: 8.754 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004741/0.4482, allocations: 142.6 kB / 0.6015 GB, free: 8.613 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002025/0.4502, allocations: 0.9798 MB / 0.6024 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.4503, allocations: 31.91 kB / 0.6025 GB, free: 7.559 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.4504, allocations: 52 kB / 0.6025 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001399/0.4519, allocations: 0.824 MB / 0.6033 GB, free: 6.684 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.4534, allocations: 1.02 MB / 0.6043 GB, free: 5.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.551e-05/0.4534, allocations: 11.84 kB / 0.6043 GB, free: 5.578 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.787e-05/0.4535, allocations: 0 / 0.6043 GB, free: 5.578 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.4537, allocations: 65.97 kB / 0.6044 GB, free: 5.512 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006042/0.4597, allocations: 4.409 MB / 0.6087 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.4603, allocations: 400.1 kB / 0.6091 GB, free: 488 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005899/0.4609, allocations: 358.9 kB / 0.6094 GB, free: 120 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.461, allocations: 16.89 kB / 0.6094 GB, free: 104 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.461, allocations: 43 kB / 0.6095 GB, free: 52 kB / 442.7 MB Notification: Performance of pre-optimization done (n=58): time 2.675e-06/0.461, allocations: 0 / 0.6095 GB, free: 52 kB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.003058/0.4641, allocations: 1.85 MB / 0.6113 GB, free: 14.12 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.4642, allocations: 137 kB / 0.6114 GB, free: 13.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005703/0.4648, allocations: 491.5 kB / 0.6119 GB, free: 13.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.4648, allocations: 25.7 kB / 0.6119 GB, free: 13.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.4651, allocations: 402.8 kB / 0.6123 GB, free: 13.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.4653, allocations: 212.9 kB / 0.6125 GB, free: 12.83 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.4653, allocations: 3.938 kB / 0.6125 GB, free: 12.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4655, allocations: 386.7 kB / 0.6129 GB, free: 12.44 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.4659, allocations: 241.9 kB / 0.6131 GB, free: 12.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000534/0.4664, allocations: 0.4915 MB / 0.6136 GB, free: 11.61 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.sm_ctrl.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002597/0.469, allocations: 0.7731 MB / 0.6143 GB, free: 10.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.469, allocations: 4 kB / 0.6143 GB, free: 10.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002776/0.4718, allocations: 1.351 MB / 0.6157 GB, free: 9.395 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001068/0.4729, allocations: 3.046 MB / 0.6186 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.4729, allocations: 8 kB / 0.6186 GB, free: 6.105 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.4746, allocations: 454.2 kB / 0.6191 GB, free: 5.656 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/0.4752, allocations: 143.8 kB / 0.6192 GB, free: 5.516 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003611/0.4788, allocations: 4.028 MB / 0.6231 GB, free: 1.227 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.4794, allocations: 23.94 kB / 0.6232 GB, free: 1.203 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.4795, allocations: 40.09 kB / 0.6232 GB, free: 1.164 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.443e-06/0.4795, allocations: 4 kB / 0.6232 GB, free: 1.16 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00251/0.482, allocations: 1.198 MB / 0.6244 GB, free: 15.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.482, allocations: 8 kB / 0.6244 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.4836, allocations: 446.7 kB / 0.6248 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.4842, allocations: 147.8 kB / 0.6249 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008162/0.4924, allocations: 6.798 MB / 0.6316 GB, free: 8.168 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/0.493, allocations: 28.03 kB / 0.6316 GB, free: 8.141 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.801e-05/0.4931, allocations: 36 kB / 0.6316 GB, free: 8.105 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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.0002733/0.4934, allocations: 131.4 kB / 0.6318 GB, free: 7.973 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.4935, allocations: 79 kB / 0.6318 GB, free: 7.895 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.4949, allocations: 0.7834 MB / 0.6326 GB, free: 7.074 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.4949, allocations: 4 kB / 0.6326 GB, free: 7.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.4949, allocations: 8 kB / 0.6326 GB, free: 7.062 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4949, allocations: 3.984 kB / 0.6326 GB, free: 7.059 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.4976, allocations: 1.675 MB / 0.6343 GB, free: 5.293 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.4976, allocations: 7.938 kB / 0.6343 GB, free: 5.285 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.4984, allocations: 127.9 kB / 0.6344 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.4986, allocations: 57.75 kB / 0.6344 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.4986, allocations: 7.984 kB / 0.6345 GB, free: 5.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.5005, allocations: 2.636 MB / 0.637 GB, free: 2.223 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5005, allocations: 4 kB / 0.637 GB, free: 2.219 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001638/0.5022, allocations: 1.299 MB / 0.6383 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.5025, allocations: 200.1 kB / 0.6385 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.5026, allocations: 7.984 kB / 0.6385 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.5031, allocations: 19.98 kB / 0.6385 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.5032, allocations: 36.52 kB / 0.6386 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.5032, allocations: 19.98 kB / 0.6386 GB, free: 0.5469 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004619/0.5037, allocations: 363.2 kB / 0.6389 GB, free: 204 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.1456/0.6493, allocations: 328.5 kB / 0.6392 GB, free: 188.3 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 () * 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.0003459/0.6497, allocations: 157.9 kB / 0.6394 GB, free: 188.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.6526, allocations: 1.796 MB / 0.6411 GB, free: 187.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6526, allocations: 0 / 0.6411 GB, free: 187.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005297/0.6531, allocations: 0.5044 MB / 0.6416 GB, free: 187.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009053/0.6541, allocations: 148.7 kB / 0.6418 GB, free: 187.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.6569, allocations: 1.635 MB / 0.6434 GB, free: 187.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006643/0.6576, allocations: 1.17 MB / 0.6445 GB, free: 186.4 MB / 474.7 MB Notification: Performance of SimCode: time 8.22e-07/0.6576, allocations: 0 / 0.6445 GB, free: 186.4 MB / 474.7 MB Notification: Performance of Templates: time 0.02227/0.6799, allocations: 15.15 MB / 0.6593 GB, free: 185.8 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