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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008466/0.0008467, allocations: 87 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008886/0.0008887, allocations: 176.2 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.2 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1745/0.1745, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003032, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 59.15 MB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008507/0.1124, allocations: 7.741 MB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005135/0.1176, allocations: 3.288 MB / 470.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000863/0.1185, allocations: 55.69 kB / 471 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007323/0.1193, allocations: 246.4 kB / 471.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.1206, allocations: 0.5639 MB / 471.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009114/0.1216, allocations: 398.5 kB / 472.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.1235, allocations: 1.875 MB / 474 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001368/0.1248, allocations: 1.094 MB / 475.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000653/0.1255, allocations: 461.9 kB / 475.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007416/0.1262, allocations: 0.5874 MB / 476.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.13e-05/0.1264, allocations: 44 kB / 476.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005822/0.1269, allocations: 287.5 kB / 476.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.1273, allocations: 323 kB / 476.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004575/0.1278, allocations: 0.5184 MB / 477.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.1291, allocations: 1.557 MB / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1291, allocations: 0 / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1292, allocations: 0 / 478.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.1292, allocations: 0 / 478.9 MB, free: 3.965 MB / 350.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.002353/0.1315, allocations: 1.215 MB / 480.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1316, allocations: 12.03 kB / 480.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007053/0.1323, allocations: 167.5 kB / 480.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.1336, allocations: 0.7973 MB / 481.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.1336, allocations: 58 kB / 481.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.1338, allocations: 103.9 kB / 481.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.1356, allocations: 1.165 MB / 482.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.1357, allocations: 4 kB / 482.4 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.77e-05/0.1358, allocations: 32 kB / 482.4 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.1359, allocations: 65.97 kB / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.1375, allocations: 0.9485 MB / 483.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005773/0.1433, allocations: 4.652 MB / 488.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.1445, allocations: 0.6996 MB / 488.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006666/0.1452, allocations: 346.4 kB / 489.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.1452, allocations: 12.55 kB / 489.1 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1453, allocations: 39.12 kB / 489.2 MB, free: 9.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 4.448e-06/0.1453, allocations: 4 kB / 489.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.005365/0.1506, allocations: 2.378 MB / 491.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.1508, allocations: 141.1 kB / 491.7 MB, free: 6.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000964/0.1517, allocations: 0.6802 MB / 492.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.1518, allocations: 37.7 kB / 492.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003869/0.1522, allocations: 494.8 kB / 492.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.1524, allocations: 220.8 kB / 493.1 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1525, allocations: 69.67 kB / 493.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.1527, allocations: 390.8 kB / 493.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004887/0.1532, allocations: 273.8 kB / 493.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.1538, allocations: 0.5199 MB / 494.3 MB, free: 3.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003482/0.1573, allocations: 1.537 MB / 495.9 MB, free: 2.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1573, allocations: 4 kB / 495.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003115/0.1605, allocations: 1.414 MB / 497.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002871/0.1608, allocations: 314.4 kB / 497.6 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1608, allocations: 11.94 kB / 497.6 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/0.1624, allocations: 450.9 kB / 498.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.163, allocations: 151.8 kB / 498.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00921/0.1722, allocations: 6.213 MB / 0.4926 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007963/0.173, allocations: 39.98 kB / 0.4926 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.682e-05/0.1731, allocations: 39.98 kB / 0.4927 GB, free: 9.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.1731, allocations: 4 kB / 0.4927 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002586/0.1757, allocations: 1.202 MB / 0.4939 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1757, allocations: 12.34 kB / 0.4939 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.1772, allocations: 421.3 kB / 0.4943 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.1777, allocations: 151.7 kB / 0.4944 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007644/0.1854, allocations: 5.942 MB / 0.5002 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.1861, allocations: 39.83 kB / 0.5003 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.1861, allocations: 36 kB / 0.5003 GB, free: 1 MB / 382.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. 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 (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005786/0.1867, allocations: 396.8 kB / 0.5007 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.1869, allocations: 79.06 kB / 0.5007 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2266/0.4134, allocations: 0.7397 MB / 0.5015 GB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.4135, allocations: 6.688 kB / 0.5015 GB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4135, allocations: 2.344 kB / 0.5015 GB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.4135, allocations: 9.453 kB / 0.5015 GB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003101/0.4166, allocations: 1.769 MB / 0.5032 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4167, allocations: 0.75 kB / 0.5032 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007558/0.4174, allocations: 145.8 kB / 0.5033 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.4175, allocations: 24.72 kB / 0.5034 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.086e-05/0.4176, allocations: 16.91 kB / 0.5034 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007255/0.4183, allocations: 1.29 MB / 0.5046 GB, free: 52.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4183, allocations: 1.25 kB / 0.5047 GB, free: 52.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.4202, allocations: 1.226 MB / 0.5058 GB, free: 52.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.4206, allocations: 216.7 kB / 0.5061 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.4207, allocations: 20.22 kB / 0.5061 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004583/0.4211, allocations: 35.77 kB / 0.5061 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.4213, allocations: 42.12 kB / 0.5061 GB, free: 52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.992e-05/0.4213, allocations: 17.11 kB / 0.5062 GB, free: 52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006281/0.4219, allocations: 481.7 kB / 0.5066 GB, free: 51.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4219, allocations: 4.25 kB / 0.5066 GB, free: 51.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0016/0.4235, allocations: 410 kB / 0.507 GB, free: 51.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00029/0.4238, allocations: 135.6 kB / 0.5071 GB, free: 51.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003794/0.4276, allocations: 1.99 MB / 0.5091 GB, free: 51.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4277, allocations: 3.562 kB / 0.5091 GB, free: 51.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.4283, allocations: 446 kB / 0.5095 GB, free: 50.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.4297, allocations: 215.9 kB / 0.5097 GB, free: 50.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.4338, allocations: 2.601 MB / 0.5123 GB, free: 49.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008724/0.4347, allocations: 1.12 MB / 0.5134 GB, free: 48.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008877/0.4355, allocations: 215.8 kB / 0.5136 GB, free: 48.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.4358, allocations: 60.61 kB / 0.5136 GB, free: 48.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4358, allocations: 0.8438 kB / 0.5136 GB, free: 48.54 MB / 382.1 MB Notification: Performance of Templates: time 0.02498/0.4608, allocations: 16.16 MB / 0.5294 GB, free: 41.03 MB / 382.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches