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.0007371/0.0007371, allocations: 88.89 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.0008603/0.0008603, allocations: 177 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.219/1.219, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1616/0.1616, allocations: 38.09 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 8.188 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08285, allocations: 59.16 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007637/0.09052, allocations: 7.729 MB / 467.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004809/0.09536, allocations: 3.296 MB / 470.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007838/0.09617, allocations: 51.69 kB / 471 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00078/0.09697, allocations: 246.4 kB / 471.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.09834, allocations: 0.5756 MB / 471.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000898/0.09926, allocations: 390.1 kB / 472.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002102/0.1014, allocations: 1.867 MB / 474 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.1028, allocations: 1.094 MB / 475.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005364/0.1033, allocations: 453.9 kB / 475.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006571/0.104, allocations: 0.603 MB / 476.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-05/0.1041, allocations: 44 kB / 476.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004574/0.1046, allocations: 279.5 kB / 476.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003131/0.1049, allocations: 331 kB / 476.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004787/0.1054, allocations: 0.5145 MB / 477.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.1066, allocations: 1.557 MB / 478.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1067, allocations: 0 / 478.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1067, allocations: 0 / 478.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1067, allocations: 4 kB / 478.9 MB, free: 3.918 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.002053/0.1087, allocations: 1.215 MB / 480.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1088, allocations: 8.031 kB / 480.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006242/0.1094, allocations: 163.5 kB / 480.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.1105, allocations: 0.8012 MB / 481.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.551e-05/0.1106, allocations: 66 kB / 481.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.1108, allocations: 95.89 kB / 481.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.1124, allocations: 1.157 MB / 482.4 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.1124, allocations: 4 kB / 482.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.1125, allocations: 32 kB / 482.4 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.859e-05/0.1126, allocations: 65.97 kB / 482.5 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.114, allocations: 0.9524 MB / 483.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.1192, allocations: 4.648 MB / 488.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009857/0.1202, allocations: 0.7035 MB / 488.8 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/0.1207, allocations: 346.2 kB / 489.1 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.1208, allocations: 16.55 kB / 489.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.1208, allocations: 39.11 kB / 489.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.114e-06/0.1208, allocations: 7.938 kB / 489.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.004209/0.125, allocations: 2.366 MB / 491.5 MB, free: 6.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.1251, allocations: 145 kB / 491.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000705/0.1258, allocations: 0.6801 MB / 492.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.1259, allocations: 37.7 kB / 492.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002915/0.1262, allocations: 494.9 kB / 492.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.1263, allocations: 220.8 kB / 493.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.561e-05/0.1264, allocations: 69.69 kB / 493.2 MB, free: 5.039 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1266, allocations: 390.7 kB / 493.6 MB, free: 4.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/0.127, allocations: 277.8 kB / 493.8 MB, free: 4.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.1276, allocations: 0.516 MB / 494.3 MB, free: 3.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003211/0.1308, allocations: 1.533 MB / 495.9 MB, free: 2.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1308, allocations: 4 kB / 495.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002779/0.1336, allocations: 1.421 MB / 497.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.1338, allocations: 314.3 kB / 497.6 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1338, allocations: 8 kB / 497.6 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.1353, allocations: 450.8 kB / 498.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004845/0.1358, allocations: 143.8 kB / 498.2 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008135/0.1439, allocations: 6.231 MB / 0.4926 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.1444, allocations: 35.98 kB / 0.4926 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.1445, allocations: 36 kB / 0.4927 GB, free: 9.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/0.1445, allocations: 4 kB / 0.4927 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002342/0.1469, allocations: 1.206 MB / 0.4939 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1469, allocations: 11.98 kB / 0.4939 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.1482, allocations: 425.6 kB / 0.4943 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.1487, allocations: 155.7 kB / 0.4944 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/0.1556, allocations: 5.933 MB / 0.5002 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.1561, allocations: 43.83 kB / 0.5003 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.1562, allocations: 35.98 kB / 0.5003 GB, free: 0.957 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.0004812/0.1567, allocations: 396.8 kB / 0.5007 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.1568, allocations: 79.06 kB / 0.5007 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.202/0.3588, allocations: 0.7413 MB / 0.5015 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.3589, allocations: 6.969 kB / 0.5015 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3589, allocations: 2.328 kB / 0.5015 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.3589, allocations: 4.281 kB / 0.5015 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003526/0.3625, allocations: 1.776 MB / 0.5032 GB, free: 54.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3625, allocations: 1.906 kB / 0.5032 GB, free: 54.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006932/0.3632, allocations: 141.9 kB / 0.5034 GB, free: 54.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.954e-05/0.3633, allocations: 23.92 kB / 0.5034 GB, free: 54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.3634, allocations: 20.95 kB / 0.5034 GB, free: 54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006235/0.364, allocations: 1.283 MB / 0.5046 GB, free: 52.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.364, allocations: 3.75 kB / 0.5047 GB, free: 52.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.3657, allocations: 1.226 MB / 0.5059 GB, free: 52.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.366, allocations: 216.5 kB / 0.5061 GB, free: 52.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.3661, allocations: 18.22 kB / 0.5061 GB, free: 52.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.3665, allocations: 33.31 kB / 0.5061 GB, free: 52.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3666, allocations: 42.72 kB / 0.5061 GB, free: 52.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.3667, allocations: 24.66 kB / 0.5062 GB, free: 52.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005514/0.3672, allocations: 484.8 kB / 0.5066 GB, free: 52.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3672, allocations: 0 / 0.5066 GB, free: 52.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001403/0.3687, allocations: 406.8 kB / 0.507 GB, free: 52.2 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.0002903/0.3689, allocations: 133.4 kB / 0.5071 GB, free: 52.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.3721, allocations: 1.994 MB / 0.5091 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3721, allocations: 0 / 0.5091 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006004/0.3727, allocations: 450 kB / 0.5095 GB, free: 50.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.3739, allocations: 211.1 kB / 0.5097 GB, free: 50.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.377, allocations: 2.605 MB / 0.5123 GB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007553/0.3778, allocations: 1.12 MB / 0.5134 GB, free: 48.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007844/0.3786, allocations: 215.3 kB / 0.5136 GB, free: 48.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.3788, allocations: 60.97 kB / 0.5136 GB, free: 48.61 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3789, allocations: 0 / 0.5136 GB, free: 48.61 MB / 382.1 MB Notification: Performance of Templates: time 0.02296/0.4018, allocations: 16.17 MB / 0.5294 GB, free: 41.19 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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